diff --git a/README.md b/README.md index 47ffff5..c94f195 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # sofia-sip +A RFC3261 compliant SIP User-Agent library. + diff --git a/sofia-sip.spec b/sofia-sip.spec new file mode 100644 index 0000000..4d25e0a --- /dev/null +++ b/sofia-sip.spec @@ -0,0 +1,103 @@ +%define majver %(echo %version | cut -d. -f1-2) +Name: sofia-sip +Version: 1.12.11 +Release: 1mamba +Summary: A RFC3261 compliant SIP User-Agent library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://sofia-sip.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/sofia-sip/sofia-sip/%{version}/sofia-sip-%{version}.tar.gz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libglib-devel +BuildRequires: libopenssl-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A RFC3261 compliant SIP User-Agent library. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q + +%build +%configure +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/addrinfo +%{_bindir}/localinfo +%{_bindir}/sip-date +%{_bindir}/sip-dig +%{_bindir}/sip-options +%{_bindir}/stunc +%dir %{_datadir}/sofia-sip +%{_datadir}/sofia-sip/msg_parser.awk +%{_datadir}/sofia-sip/tag_dll.awk +%doc AUTHORS COPYING + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libsofia-sip-ua-glib.so.* +%{_libdir}/libsofia-sip-ua.so.* +%{_mandir}/man1/addrinfo.1* +%{_mandir}/man1/localinfo.1* +%{_mandir}/man1/sip-date.1* +%{_mandir}/man1/sip-dig.1* +%{_mandir}/man1/sip-options.1* +%{_mandir}/man1/stunc.1* + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/sofia-sip-%{majver} +%dir %{_includedir}/sofia-sip-%{majver}/sofia-resolv +%{_includedir}/sofia-sip-%{majver}/sofia-resolv/*.h +%dir %{_includedir}/sofia-sip-%{majver}/sofia-sip +%{_includedir}/sofia-sip-%{majver}/sofia-sip/*.h +%{_includedir}/sofia-sip-%{majver}/sofia-sip/*.h.in +%{_libdir}/libsofia-sip-ua-glib.a +%{_libdir}/libsofia-sip-ua-glib.la +%{_libdir}/libsofia-sip-ua-glib.so +%{_libdir}/libsofia-sip-ua.a +%{_libdir}/libsofia-sip-ua.la +%{_libdir}/libsofia-sip-ua.so +%{_libdir}/pkgconfig/sofia-sip-ua-glib.pc +%{_libdir}/pkgconfig/sofia-sip-ua.pc +%doc ChangeLog ChangeLog.ext-trees README README.developers TODO + +%changelog +* Mon Oct 27 2014 Silvan Calarco 1.12.11-1mamba +- package created using the webbuild interface