From a255b0544c1171b7a2679e3c735ea662e4268aaa Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 20:30:20 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.11.3-1mamba;Mon Aug 14 2017] --- README.md | 2 + appstream.spec | 124 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 126 insertions(+) create mode 100644 appstream.spec diff --git a/README.md b/README.md index ac81feb..32d775f 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # appstream +Tools and libraries to work with AppStream metadata. + diff --git a/appstream.spec b/appstream.spec new file mode 100644 index 0000000..f3df733 --- /dev/null +++ b/appstream.spec @@ -0,0 +1,124 @@ +Name: appstream +Version: 0.11.3 +Release: 1mamba +Summary: Tools and libraries to work with AppStream metadata +Group: System/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://www.freedesktop.org/wiki/Distributions/AppStream/ +Source: https://www.freedesktop.org/software/appstream/releases/AppStream-%{version}.tar.xz +License: GPL, LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libglib-devel +BuildRequires: libqt5-devel +BuildRequires: libstdc++6-devel +BuildRequires: libstemmer-devel +BuildRequires: libxml2-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Tools and libraries to work with AppStream metadata. + +%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}. + +%package -n lib%{name}-qt +Group: System/Libraries +Summary: Qt shared libraries for %{name} + +%description -n lib%{name}-qt +This package contains shared libraries for %{name}. + +%package -n lib%{name}-qt-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name}-qt = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-qt-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q -n AppStream-%{version} + +%build +%cmake -d build \ + -DQT=ON + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +%find_lang %{name} || touch %{name}.lang + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -f %{name}.lang +%defattr(-,root,root) +%{_bindir}/appstreamcli +%{_mandir}/man1/appstreamcli.1* +%doc AUTHORS + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libappstream.so.* +%{_libdir}/girepository-1.0/AppStream-1.0.typelib + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_sysconfdir}/appstream.conf +%dir %{_includedir}/AppStream +%{_includedir}/AppStream/*.h +%{_libdir}/libappstream.so +%{_libdir}/pkgconfig/appstream.pc +%{_datadir}/gettext/its/metainfo.its +%{_datadir}/gettext/its/metainfo.loc +%{_datadir}/gir-1.0/AppStream-1.0.gir +%{_datadir}/gtk-doc/html/appstream +%{_datadir}/metainfo/org.freedesktop.appstream.cli.metainfo.xml +%dir %{_datadir}/doc/appstream +%{_datadir}/doc/appstream/* +%doc NEWS README.md + +%files -n lib%{name}-qt +%defattr(-,root,root) +%{_libdir}/libAppStreamQt.so.* + +%files -n lib%{name}-qt-devel +%defattr(-,root,root) +%dir %{_includedir}/AppStreamQt +%{_includedir}/AppStreamQt/*.h +%dir %{_libdir}/cmake/AppStreamQt +%{_libdir}/cmake/AppStreamQt/AppStreamQt*.cmake +%{_libdir}/libAppStreamQt.so + +%changelog +* Mon Aug 14 2017 Silvan Calarco 0.11.3-1mamba +- package created using the webbuild interface