[leksah/f14] Initial commit modified: .gitignore new file: leksah.desktop new file: leksah.spec new fil

Lakshmi Narasimhan T V narasim at fedoraproject.org
Wed Jul 20 14:34:23 UTC 2011


commit 0b05fb14024ef72e4533a4f0cc523c29b8930d66
Author: Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com>
Date:   Wed Jul 20 20:03:56 2011 +0530

    Initial commit
    	modified:   .gitignore
    	new file:   leksah.desktop
    	new file:   leksah.spec
    	new file:   leksah_dep.patch
    	modified:   sources

 .gitignore       |    1 +
 leksah.desktop   |   10 ++++
 leksah.spec      |  125 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 leksah_dep.patch |   80 ++++++++++++++++++++++++++++++++++
 sources          |    1 +
 5 files changed, 217 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..80faaa7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/leksah-0.10.0.4.tar.gz
diff --git a/leksah.desktop b/leksah.desktop
new file mode 100644
index 0000000..e179cca
--- /dev/null
+++ b/leksah.desktop
@@ -0,0 +1,10 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Leksah
+GenericName=Haskell IDE
+Comment=The Haskell development environment
+Exec=leksah %F
+Icon=leksah
+Type=Application
+Categories=GNOME;GTK;Development;
+MimeType=text/x-haskell;text/x-literate-haskell;application/leksah-session;application/leksah-workspace
diff --git a/leksah.spec b/leksah.spec
new file mode 100644
index 0000000..cfaccbf
--- /dev/null
+++ b/leksah.spec
@@ -0,0 +1,125 @@
+# For Haskell Packaging Guidelines see:
+# - https://fedoraproject.org/wiki/Packaging:Haskell
+# - https://fedoraproject.org/wiki/PackagingDrafts/Haskell
+
+%global pkg_name leksah
+
+
+# common part of summary for all the subpackages
+%global common_summary An IDE for Haskell
+
+
+# main description used for all the subpackages
+%global common_description Leksah is an Integrated Development Environment for \
+Haskell written in Haskell. Leksah uses GTK+ as GUI Toolkit.
+
+
+Name:           %{pkg_name}
+Version:        0.10.0.4
+Release:        3%{?dist}
+Summary:        Haskell IDE
+Group:          Development/Tools
+# LICENSE file is GPLv2 while sources only mention GPL, hence GPL+.
+License:        GPL+
+URL:            http://hackage.haskell.org/package/%{name}
+# all sources
+Source0:        http://hackage.haskell.org/packages/archive/%{name}/%{version}/%{name}-%{version}.tar.gz
+Source1:        %{name}.desktop
+# arches
+ExclusiveArch:  %{ghc_arches}
+BuildRequires:  ghc-Cabal-devel
+BuildRequires:  ghc-rpm-macros
+BuildRequires:  hscolour
+BuildRequires :  ghc-Cabal-prof, ghc-directory-prof, ghc-gtksourceview2-prof, ghc-old-time-prof, ghc-process-leksah-prof, ghc-regex-tdfa-prof, ghc-utf8-string-prof, ghc-time-prof, ghc-ltk-prof, ghc-binary-shared-prof, ghc-deepseq-prof, ghc-hslogger-prof, ghc-leksah-server-prof, ghc-network-prof, ghc-ghc-prof, ghc-strict-prof
+BuildRequires: desktop-file-utils
+# all requires list
+Requires: shared-mime-info
+Requires: hicolor-icon-theme
+Requires: leksah-server
+
+
+# patches
+Patch1 : leksah_dep.patch
+
+
+%description
+%{common_description}
+
+
+%prep
+%setup -q
+%patch1 -p1 -b .orig
+
+
+%build
+%ghc_lib_build
+
+
+%install
+%ghc_lib_install
+mkdir -p $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/128x128/apps
+install --mode=0644 -D pics/leksah.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/128x128/apps/leksah.png
+desktop-file-install --add-category="Development"  --add-category="X-DevelopmentTools" --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
+
+
+# define the shared, devel and prof subpkgs, devel scripts,
+# and filelists: ghc-leksah.files, ghc-leksah-devel.files
+%ghc_binlib_package
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE
+%attr(755,root,root) %{_bindir}/%{name}
+%dir %{_datadir}/%{name}-%{version}
+%dir %{_datadir}/%{name}-%{version}/data
+%dir %{_datadir}/%{name}-%{version}/pics
+%attr(644,root,root) %{_datadir}/%{name}-%{version}/LICENSE
+%attr(644,root,root) %{_datadir}/%{name}-%{version}/Readme
+%attr(644,root,root) %{_datadir}/%{name}-%{version}/pics/*
+%attr(644,root,root) %{_datadir}/%{name}-%{version}/data/*
+%attr(644,root,root) %{_datadir}/applications/%{name}.desktop
+%attr(644,root,root) %{_datadir}/icons/hicolor/128x128/apps/leksah.png
+
+
+%post
+touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
+update-desktop-database &> /dev/null || :
+
+
+%postun
+if [ $1 -eq 0 ] ; then
+    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
+    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+fi
+update-desktop-database &> /dev/null || :
+
+
+%posttrans
+gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
+
+
+%changelog
+* Sat Jul 2 2011 Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com> - 0.10.0.4-3
+- Added license comment before License field.
+- Fixed vertical spacing.
+- Modified BuildRequires (as per Jens' suggestion) so that its a closure of the dependencies mentioned in the cabal file.
+
+* Sun Jun 26 2011 Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com> - 0.10.0.4-2
+- Upgrade to cabal2spec-0.23.2
+- License in the LICENSE file is mentioned as GPLV2 while sources specify license as GPL.Hence GPL+.
+
+* Sun Jun 12 2011 Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com> - 0.10.0.4-1
+- Upgrade to 0.10.0.4. Update to cabal2spec-0.22.7
+- Removed desktop_file.patch.
+- Patched cabal file to workaround cabal bug @ http://hackage.haskell.org/trac/hackage/ticket/656
+
+* Sun Apr 17 2011 Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com> - 0.10.0.1-1
+- upgrade to 0.10.0.1, update to cabal2spec-0.22.5.
+
+* Sun Jan 30 2011 Lakshmi Narasimhan T V <lakshminaras2002 at gmail.com> - 0.8.0.8-1
+- updated dependencies. 
+- generate desktop file. scale icon file to 64x64. run gtk-update-icon-cache after transaction
+
+* Sun Jan 30 2011 Fedora Haskell SIG <haskell-devel at lists.fedoraproject.org> - 0.8.0.8-0
+- initial packaging for Fedora automatically generated by cabal2spec-0.22.4
diff --git a/leksah_dep.patch b/leksah_dep.patch
new file mode 100644
index 0000000..8004d10
--- /dev/null
+++ b/leksah_dep.patch
@@ -0,0 +1,80 @@
+--- leksah-0.10.0.4_orig/leksah.cabal	2011-06-12 01:29:20.126986505 +0530
++++ leksah-0.10.0.4/leksah.cabal	2011-06-12 01:57:57.303603667 +0530
+@@ -97,12 +97,12 @@
+ 
+     build-depends: Cabal >=1.6.0.1 && <1.11, base >=4.0.0.0 && <4.4, binary >=0.5.0.0 && <0.6,
+                    bytestring >=0.9.0.1 && <0.10, containers >=0.2.0.0 && <0.5, directory >=1.0.0.2 && <3.1,
+-                   filepath >=1.1.0.1 && <1.3, glib >=0.10 && <0.13, gtk >=0.10 && <0.13,
++                   filepath >=1.1.0.1, glib >=0.10 && <0.13, gtk >=0.10 && <0.13,
+                    gtksourceview2 >=0.10.0 && <0.13, mtl >=1.1.0.2 && <2.1, old-time >=1.0.0.1 && <1.1,
+                    parsec >=2.1.0.1 && <3.2, pretty >=1.0.1.0 && <1.1, process-leksah >=1.0.1.3 && <1.1,
+                    regex-tdfa ==1.1.*, regex-base ==0.93.*, utf8-string >=0.3.1.1 && <0.4, array >=0.2.0.0 && <0.4,
+                    time >=0.1 && <1.3, ltk >= 0.10 && <0.11, binary-shared >= 0.8 && <0.9, deepseq >= 1.1.0.0 && <1.2,
+-                   hslogger >= 1.0.7 && <1.2, leksah-server >= 0.10 && <0.11, network >= 2.2 && <3.0,
++                   hslogger >= 1.0.7, leksah-server >= 0.10 && <0.11, network >= 2.2 && <3.0,
+                    ghc >=6.10.1 && <7.1, strict >= 0.3.2 && <0.4
+ 
+     exposed-modules:
+@@ -126,7 +126,6 @@
+     other-modules: Paths_leksah
+ 
+     ghc-prof-options: -auto-all -prof
+-    ghc-shared-options: -auto-all -prof
+     ghc-options: -fwarn-missing-fields -fwarn-incomplete-patterns -ferror-spans
+ 
+ Executable leksah
+@@ -158,7 +157,7 @@
+         hs-source-dirs: src, main
+         build-depends: Cabal >=1.6.0.1 && <1.11, base >=4.0.0.0 && <4.4, binary >=0.5.0.0 && <0.6,
+                        bytestring >=0.9.0.1 && <0.10, containers >=0.2.0.0 && <0.5, directory >=1.0.0.2 && <3.1,
+-                       filepath >=1.1.0.1 && <1.3, glib >=0.10 && <0.13, gtk >=0.10 && <0.13,
++                       filepath >=1.1.0.1, glib >=0.10 && <0.13, gtk >=0.10 && <0.13,
+                        gtksourceview2 >=0.10.0 && <0.13, mtl >=1.1.0.2 && <2.1, old-time >=1.0.0.1 && <1.1,
+                        parsec >=2.1.0.1 && <3.2, pretty >=1.0.1.0 && <1.1, process-leksah >=1.0.1.3 && <1.1,
+                        regex-tdfa ==1.1.*, regex-base ==0.93.*, utf8-string >=0.3.1.1 && <0.4, array >=0.2.0.0 && <0.4,
+@@ -166,16 +165,38 @@
+                        hslogger >= 1.0.7 && <1.2, leksah-server >= 0.10 && <0.11, network >= 2.2 && <3.0,
+                        ghc >=6.10.1 && <7.1, strict >= 0.3.2 && <0.4
+     else
+-        hs-source-dirs: main
+-        build-depends: leksah ==0.10.0.4, base >=4.0.0.0 && <= 5
++        hs-source-dirs: src, main
++        build-depends: Cabal >=1.6.0.1 && <1.11, base >=4.0.0.0 && <= 5,binary >=0.5.0.0 && <0.6,
++                       bytestring >=0.9.0.1 && <0.10, containers >=0.2.0.0 && <0.5, directory >=1.0.0.2 && <3.1,
++                       filepath >=1.1.0, glib >=0.10 && <0.13, gtk >=0.10 && <0.13,
++                       gtksourceview2 >=0.10.0 && <0.13, mtl >=1.1.0.2 && <2.1, old-time >=1.0.0.1 && <1.1,
++                       parsec >=2.1.0.1 && <3.2, pretty >=1.0.1.0 && <1.1, process-leksah >=1.0.1.3 && <1.1,
++                       regex-tdfa ==1.1.*, regex-base ==0.93.*, utf8-string >=0.3.1.1 && <0.4, array >=0.2.0.0 && <0.4,
++                       time >=0.1 && <1.3, ltk >= 0.10 && <0.11, binary-shared >= 0.8 && <0.9, deepseq >= 1.1.0.0 && <1.2,
++                       hslogger >= 1.0.7, leksah-server >= 0.10 && <0.11, network >= 2.2 && <3.0,
++                       ghc >=6.10.1 && <7.1, strict >= 0.3.2
++
++    other-modules:
++        IDE.Leksah IDE.Completion IDE.ImportTool
++        IDE.Find IDE.Session IDE.Command IDE.Keymap IDE.Utils.GUIUtils
++        IDE.Package IDE.YiConfig IDE.OSX
++        IDE.GUIHistory IDE.SourceCandy IDE.NotebookFlipper
++        IDE.Core.Types IDE.Core.State
++        IDE.Metainfo.Provider
++        IDE.Pane.Preferences IDE.Pane.PackageEditor
++        IDE.Pane.Info IDE.Pane.Log IDE.Pane.SourceBuffer IDE.Pane.Modules
++        IDE.Pane.Search IDE.Pane.PackageFlags
++        IDE.LogRef IDE.Debug IDE.Pane.Grep
++        IDE.Pane.Breakpoints IDE.Pane.Trace IDE.Pane.Variables
++        IDE.Pane.Errors IDE.TextEditor IDE.Workspaces
++        IDE.Statusbar IDE.Pane.Workspace IDE.PaneGroups
++        IDE.Utils.ServerConnection
++        IDE.BufferMode
++        IDE.Build
++        Paths_leksah
+ 
+     main-is: Main.hs
+     buildable: True
+     extensions: CPP
+     ghc-prof-options: -auto-all -prof
+-    ghc-shared-options: -auto-all -prof
+     ghc-options:  -fwarn-missing-fields -fwarn-incomplete-patterns -ferror-spans
+-
+-
+-
+-
diff --git a/sources b/sources
index e69de29..93c7f43 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b8f788c34fd7ac9ffb9a0e918e519291  leksah-0.10.0.4.tar.gz


More information about the scm-commits mailing list