[gtkmm] [PATCH] gtkmm.spec changes for fedora
- From: "Michael A. Koziarski" <michael koziarski com>
- To: gtkmm-list gnome org
- Subject: [gtkmm] [PATCH] gtkmm.spec changes for fedora
- Date: Sat, 18 Oct 2003 14:27:15 +1300
Hey guys,
This is a first cut at merging the gtkmm2 spec from Fedora into gtkmm
proper. The diff is against 2.2.8.
Anyone have any comments? Should I open a bugzilla bug with this?
Cheers
Koz
--- gtkmm.spec.in 2002-12-09 09:56:49.000000000 +1300
+++ gtkmm2.spec 2003-10-18 14:23:19.000000000 +1300
@@ -1,17 +1,18 @@
-%define version @VERSION@
-%define release 1
-
-Summary: A C++ interface for GTK2 (a GUI library for X).
-Name: gtkmm2
-Version: %{version}
-Release: %{release}
-Group: System Environment/Libraries
-License: LGPL
-URL: http://gtkmm.sourceforge.net/
-Source: ftp://ftp.sourceforge.net/pub/sourceforge/gtkmm/gtkmm-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
-BuildRequires: libsigc++-devel >= 1.2.0, glib2-devel >= 2.0.4
-BuildRequires: atk-devel >= 1.0.0, pango-devel >= 1.0.0, gtk2-devel >= 2.0.5
+Summary: A C++ interface for GTK2 (a GUI library for X).
+Name: gtkmm2
+Version: @VERSION@
+Release: 1
+Epoch: 0
+License: LGPL
+Group: System Environment/Libraries
+URL: http://gtkmm.sourceforge.net/
+Source0: http://dl.sourceforge.net/gtkmm/gtkmm-2.2.8.tar.gz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: libsigc++-devel >= 0:1.2.0
+BuildRequires: glib2-devel >= 0:2.0.4
+BuildRequires: atk-devel >= 0:1.0.0
+BuildRequires: pango-devel >= 0:1.0.0
+BuildRequires: gtk2-devel >= 0:2.0.5
%description
gtkmm provides a C++ interface to the GTK+ GUI library. gtkmm2 wraps GTK+ 2.
@@ -19,54 +20,84 @@
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.
-%package devel
-Summary: Headers for developing programs that will use %{name}.
-Group: Development/Libraries
-Requires: %{name} = %{version}, gtk2-devel, glib2-devel, libsigc++-devel
-Requires: atk-devel, pango-devel
+%package devel
+Summary: Headers for developing programs that will use %{name}.
+Group: Development/Libraries
+Requires: %{name} = %{epoch}:%{version}-%{release}
+Requires: gtk2-devel
+Requires: glib2-devel
+Requires: libsigc++-devel
+Requires: atk-devel
+Requires: pango-devel
+Requires: m4
-%description devel
+%description devel
This package contains the static libraries and header files needed for
-developing gtkmm applications.
+developing %{name} applications.
+
+%package docs
+Summary: API Documentation for %{name}
+Group: Documentation
+Requires: %{name}-devel = %{epoch}:%{version}-%{release}
+%description docs
+This package contains the full API documentation for %{name}.
%prep
%setup -q -n gtkmm-%{version}
+
+
%build
-%configure --enable-static --enable-shared
+%configure --enable-static --enable-shared
make %{?_smp_mflags}
+
+
%install
-rm -rf %{buildroot}
-make DESTDIR=%{buildroot} install
+rm -rf ${RPM_BUILD_ROOT}
+make DESTDIR=${RPM_BUILD_ROOT} install
+find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
+rm -rf $RPM_BUILD_ROOT%{_datadir}/devhelp/books/gtkmm-2.0
+
+
+%clean
+rm -rf ${RPM_BUILD_ROOT}
+
-# new redhat versions don't use .la
-rm -f %{buildroot}%{_libdir}/*.la
%post -p /sbin/ldconfig
+
+
%postun -p /sbin/ldconfig
-%clean
-rm -rf %{buildroot}
+
%files
-%defattr(-, root, root)
+%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_libdir}/*.so.*
%files devel
-%defattr(-, root, root)
+%defattr(-,root,root,-)
%doc CHANGES PORTING
-%doc %{_datadir}/doc/gtkmm-2.0
%{_includedir}/gtkmm-2.0
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/gtkmm-2.0
%{_libdir}/pkgconfig/*.pc
+
+%files docs
+%defattr(-,root,root,-)
+%doc %{_datadir}/doc/gtkmm-2.0
+
+
%changelog
+* Sat Oct 18 2003 Michael Koziarski <michael koziarski org> 0:2.2.8-0.fdr.3
+- Merge with fedora.us version
+
* Fri Dec 6 2002 Gary Peck <gbpeck sbcglobal net> 2.0.2-1
- Removed "--without docs" option and simplified the spec file since the
documentation is included in the tarball now
@@ -89,4 +120,3 @@
* Mon Oct 14 2002 Gary Peck <gbpeck sbcglobal net> 1.3.24-gp1
- Initial release of gtkmm2, using gtkmm spec file as base
-
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]