Diff of /gtkextra-3.0.spec.in [89bc8e] .. [2dc077]  Maximize  Restore

Switch to side-by-side view

--- a/gtkextra-3.0.spec.in
+++ b/gtkextra-3.0.spec.in
@@ -1,4 +1,3 @@
-# Note that this is NOT a relocatable package
 
 %define name  gtkextra3
 %define major @GTK_EXTRA_MAJOR_VERSION@
@@ -6,18 +5,17 @@
 %define micro @GTK_EXTRA_MICRO_VERSION@
 %define ver   %major.%minor.%micro
 %define rel      1
-%define prefix   /usr
 
 Summary: A library of gtk+ widgets
 Name: %name 
 Version: %ver
-Release: %rel
-Copyright: LGPL
+Release: %rel%{?dist}
+License: LGPL
 Group: System Environment/Libraries
-Source: http://gtkextra.sourceforge.net/src/gtk+extra-%version.tar.gz
-BuildRoot: /var/tmp/glib-%{PACKAGE_VERSION}-root
+Source: http://gtkextra.sourceforge.net/src/gtkextra-%version.tar.gz
+BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
 URL: http://gtkextra.sourceforge.net
-Requires:        gtk2 >= 2.18.9
+Requires:        gtk2 >= 2.12.0
 Requires:        glib2 >= 2.12.0
 Requires:        pango
 Requires:        atk
@@ -25,7 +23,6 @@
 BuildRequires:   glib2-devel
 BuildRequires:   pango-devel
 BuildRequires:   atk-devel
-Docdir: %{prefix}/doc
 
 %description
 
@@ -36,12 +33,52 @@
 Summary: A library of gtk+ widgets
 Group: Development/Libraries
 Requires: %name = %{version}
+Requires:   gtk2-devel
+Requires:   glib2-devel
+Requires:   pango-devel
+Requires:   atk-devel
 
 %description devel
 The gtk+extra-devel package includes the static libraries, header files,
 and documentation for compiling programs that use gtk+extra widgets.
 
+%prep
+%setup -q -n gtkextra-%{version}
+
+%build
+export CFLAGS="$RPM_OPT_FLAGS" 
+%configure --disable-tests
+make
+
+%install
+rm -rf $RPM_BUILD_ROOT
+make DESTDIR=$RPM_BUILD_ROOT install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-, root, root)
+
+%doc INSTALL README docs/*.ChangeLog
+%{_libdir}/libgtkextra*.so.*
+
+%files devel
+%defattr(-, root, root)
+%{_libdir}/*so
+%{_libdir}/*a
+%{_libdir}/pkgconfig/*
+%{_includedir}/*
+%{_datadir}/gtk-doc/html/gtkextra/*
+
 %changelog
+* Wed Apr 17 2013 Tom Schoonjans <Tom.Schoonjans@me.com>
+- Modified spec file in order to make it compatible with the latest RPM building recommendations
+
 * Fri Jan 21 2005 Adrian E. Feiguin <afeiguin@uci.edu>
 - First version for gtkextra-2
 
@@ -60,34 +97,3 @@
 * Wed Mar 15  2000 Conrad Steenberg <conrad@srl.caltech.edu>
 - First spec file
 
-%prep
-%setup -q -n gtk+extra-%{version}
-
-%build
-CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix
-make
-
-%install
-rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT install
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%post -p /sbin/ldconfig
-
-%postun -p /sbin/ldconfig
-
-%files
-%defattr(-, root, root)
-
-%doc INSTALL README docs/*.ChangeLog
-%{prefix}/lib/libgtkextra*.so.*
-
-%files devel
-%defattr(-, root, root)
-%{prefix}/lib/*so
-%{prefix}/lib/*a
-%{prefix}/lib/pkgconfig/*
-%{prefix}/include/*
-

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks