gupnp-igd/gupnp-igd.spec

127 lines
3.1 KiB
RPMSpec
Raw Normal View History

2010-01-30 17:07:31 +00:00
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%define gupnp_ver 0.13.2
2009-05-16 12:54:30 +00:00
%define glib2_ver 2.16
2009-01-20 01:03:04 +00:00
Name: gupnp-igd
2010-01-30 17:07:31 +00:00
Version: 0.1.6
2009-11-17 03:05:24 +00:00
Release: 1%{?dist}
2009-01-20 01:03:04 +00:00
Summary: Library to handle UPnP IGD port mapping
Group: System Environment/Libraries
License: LGPLv2+
URL: http://www.gupnp.org/
Source0: http://www.gupnp.org/sources/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: glib2-devel >= %{glib2_ver}
BuildRequires: gupnp-devel >= %{gupnp_ver}
2010-01-30 17:07:31 +00:00
BuildRequires: pygtk2-devel
2009-01-20 01:03:04 +00:00
%description
%{name} is a library to handle UPnP IGD port mapping.
2010-01-30 17:07:31 +00:00
%package python
Summary: Python bindings for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description python
The %{name}-python package contains the Python bindings for
%{name}.
2009-01-20 01:03:04 +00:00
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
2010-01-30 17:07:31 +00:00
Requires: %{name}-python = %{version}-%{release}
2009-01-20 01:03:04 +00:00
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
%build
%configure --disable-static
# quite rpmlint error about unused-direct-shlib-dependency
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc README COPYING
%{_libdir}/*.so.*
2010-01-30 17:07:31 +00:00
%files python
%defattr(-,root,root,-)
%dir %{python_sitearch}/gupnp
%{python_sitearch}/gupnp/igd.so
2009-01-20 01:03:04 +00:00
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}-1.0*.pc
%{_datadir}/gtk-doc/html/%{name}/
%changelog
2010-01-30 17:07:31 +00:00
* Sat Jan 30 2010 Brian Pepple <bpepple@fedoraproject.org> - 0.1.6-1
- Update to 0.1.6.
2009-12-06 14:33:46 +00:00
* Sun Dec 6 2009 Peter Robinson <pbrobinson@gmail.com> - 0.1.5-1
- Update to 0.1.5.
2009-11-17 03:05:24 +00:00
* Mon Nov 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.4-1
- Update to 0.1.4.
2009-09-17 18:28:16 +00:00
* Thu Sep 17 2009 Bastien Nocera <bnocera@redhat.com> 0.1.3-3
- Rebuild for new gupnp
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2009-06-10 22:32:13 +00:00
* Wed Jun 10 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.3-1
- Update to 0.1.3.
2009-05-16 12:54:30 +00:00
* Sat May 16 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.2-1
- Update to 0.1.2.
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2009-01-20 01:03:04 +00:00
* Sun Jan 18 2009 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-2
- Quite rpmlint error about unused-direct-shlib-dependency.
* Wed Dec 31 2008 Brian Pepple <bpepple@fedoraproject.org> - 0.1.1-1
- Initial Fedora spec.