When extracting members, get them from single file only
[geany-mirror.git] / geany.spec.in
blob45f449a13a6efd7d45ffaf16f25fe8c3254aebdb
1 # Note: This spec file is very basic to provide functionality
2 # on all known RPM based distributions.
3 # It's stronly recommended to use packages of your own distributor
5 Name: geany
6 Version: @VERSION@
7 Release: 1
8 Summary: A fast and lightweight IDE using GTK+
10 Group: Development/Tools
11 License: GPLv2+
12 URL: http://www.geany.org/
13 Vendor: The Geany developer team <info@geany.org>
14 Packager: Dominic Hopf <dmaphy@googlemail.com>
15 Source: http://download.geany.org/%{name}-%{version}.tar.bz2
17 # The following tags files were retrieved 2nd Jan 2010
18 # You will have to download these and put them into your rpmbuild/SOURCES directory,
19 # otherwise comment these lines out
20 Source1: http://download.geany.org/contrib/tags/sqlite3.c.tags
21 Source2: http://download.geany.org/contrib/tags/std.glsl.tags
22 Source3: http://download.geany.org/contrib/tags/gtk218.c.tags
23 Source4: http://download.geany.org/contrib/tags/xfce46.c.tags
24 Source5: http://download.geany.org/contrib/tags/dbus-glib-0.76.c.tags
25 Source6: http://download.geany.org/contrib/tags/standard.css.tags
26 Source7: http://download.geany.org/contrib/tags/geany-api-0.18.c.tags
27 Source8: http://download.geany.org/contrib/tags/std.vala.tags
28 Source9: http://download.geany.org/contrib/tags/drupal.php.tags
29 Source10: http://download.geany.org/contrib/tags/std.latex.tags
30 Source11: http://download.geany.org/contrib/tags/libxml-2.0.c.tags
32 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
33 Requires: glib2, gtk2, pango
34 BuildRequires: glib2-devel, gtk2-devel, pango-devel, gettext, intltool
36 %description
37 Geany is a small and fast integrated development enviroment with basic
38 features and few dependencies to other packages or Desktop Environments.
40 Some features:
41 - Syntax highlighting
42 - Code completion
43 - Code folding
44 - Construct completion/snippets
45 - Auto-closing of XML and HTML tags
46 - Call tips
47 - Support for Many languages like C, Java, PHP, HTML, Python, Perl, Pascal
48 - symbol lists and symbol name auto-completion
49 - Code navigation
50 - Simple project management
51 - Plugin interface
53 %package devel
54 Summary: Header files for building Geany plug-ins
55 Group: Development/Tools
56 Requires: geany = %{version}-%{release}
57 Requires: pkgconfig gtk2-devel
59 %description devel
60 This package contains the header files and pkg-config file needed for building
61 Geany plug-ins. You do not need to install this package to use Geany.
63 %prep
64 %setup -q
65 # remove waf since this isn't needed for the build, we're building the package
66 # with autotools
67 rm -f waf
68 rm -f wscript
70 %build
71 %configure
72 %__make
74 %install
75 %__rm -Rf $RPM_BUILD_ROOT
76 %makeinstall
77 # If you experience build problems like
78 # "Found '/home/user/rpmbuild/BUILDROOT/geany-0.16svn-3328.i386' in installed files; aborting"
79 # try uncommenting the following line to workaround the problem (and add sed to BuildRequires)
80 #sed -i "s@libdir='.*'@libdir='%{_libdir}/%{name}'@g" $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
82 %__rm -f $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
84 # Install tags files
85 # comment the following two lines out if you didn't download the tags files mentioned
86 # above
87 mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/tags/
88 install -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} $RPM_BUILD_ROOT%{_datadir}/%{name}/tags/
90 %clean
91 %__rm -Rf $RPM_BUILD_ROOT
93 %files
94 %defattr(-, root, root, -)
95 %doc %{_datadir}/doc/%{name}/*
96 %doc %{_mandir}/man1/%{name}.1.gz
98 %{_bindir}/%{name}
99 %{_datadir}/%{name}
100 %{_libdir}/%{name}
101 %{_datadir}/applications/%{name}.desktop
102 %{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
103 %{_datadir}/icons/hicolor/16x16/apps/*.png
104 %{_datadir}/icons/hicolor/48x48/apps/*.png
105 %{_datadir}/icons/hicolor/scalable/apps/*.svg
108 %files devel
109 %defattr(-, root, root, -)
110 %{_includedir}/geany
111 %{_libdir}/pkgconfig/geany.pc