diff --git a/README.md b/README.md index c87f81e..8789a4b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libnma +Network Manager Applet library. + diff --git a/libnma.spec b/libnma.spec new file mode 100644 index 0000000..915c906 --- /dev/null +++ b/libnma.spec @@ -0,0 +1,124 @@ +Name: libnma +Version: 1.8.28 +Release: 1mamba +Summary: Network Manager Applet library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://live.gnome.org +Source: http://ftp.acc.umu.se/pub/GNOME/sources/libnma/1.8/libnma-%{version}.tar.xz +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libatk-devel +BuildRequires: libblkid-devel +BuildRequires: libbzip2-devel +BuildRequires: libcairo-devel +BuildRequires: libffi-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcr-devel +BuildRequires: libgcrypt-devel +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libglib-devel +BuildRequires: libgpg-error-devel +BuildRequires: libgraphite2-devel +BuildRequires: libgtk-devel +BuildRequires: libharfbuzz-devel +BuildRequires: libmount-devel +BuildRequires: libnm-devel +BuildRequires: libp11-kit-devel +BuildRequires: libpango-devel +BuildRequires: libpcre-devel +BuildRequires: libpng-devel +BuildRequires: libselinux-devel +BuildRequires: libsepol-devel +BuildRequires: libuuid-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +Obsoletes: libnm-gtk +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Network Manager Applet library. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config +Obsoletes: libnm-gtk-devel + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%package apidocs +Group: Documentation +Summary: %{name} API documentation +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: gtk-doc + +%description apidocs +This package includes the %{name} API documentation. + +%debug_package + +%prep +%setup -q + +%build +%configure --enable-gtk-doc +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%find_lang %{name} || touch %{name}.lang + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +/sbin/ldconfig +if [ $1 -ge 1 ]; then + glib-compile-schemas %{_datadir}/glib-2.0/schemas +fi +: + +%postun +/sbin/ldconfig +if [ $1 -eq 0 ]; then + glib-compile-schemas %{_datadir}/glib-2.0/schemas +fi +: + +%files -f %{name}.lang +%defattr(-,root,root) +%{_libdir}/libnma.so.* +%{_libdir}/girepository-1.0/NMA-1.0.typelib +%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml +%doc COPYING + +%files devel +%defattr(-,root,root) +%dir %{_includedir}/libnma +%{_includedir}/libnma/nma*.h +%{_libdir}/libnma.a +%{_libdir}/libnma.la +%{_libdir}/libnma.so +%{_libdir}/pkgconfig/libnma.pc +%{_datadir}/gir-1.0/NMA-1.0.gir +%{_datadir}/vala/vapi/libnma.deps +%{_datadir}/vala/vapi/libnma.vapi +%doc NEWS + +%files apidocs +%defattr(-,root,root) +%dir %{_datadir}/gtk-doc/html/libnma +%{_datadir}/gtk-doc/html/libnma/* + +%changelog +* Fri Mar 13 2020 Silvan Calarco 1.8.28-1mamba +- package created using the webbuild interface