amtk/amtk.spec

129 lines
3.9 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-2)
Name: amtk
Version: 5.8.0
Release: 1mamba
Summary: Actions, Menus and Toolbars Kit for GTK+ applications
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://wiki.gnome.org/
Source: https://gedit-technology.net/tarballs/libgedit-amtk/libgedit-amtk-%{version}.tar.xz
#Source: https://download.gnome.org/sources/amtk/%{majver}/amtk-%{version}.tar.xz
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libglib-devel
BuildRequires: libgtk3-devel
## AUTOBUILDREQ-END
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Actions, Menus and Toolbars Kit for GTK+ applications.
%package -n lib%{name}
Group: System/Libraries
Summary: Actions, Menus and Toolbars Kit for GTK+ applications
%description -n lib%{name}
Actions, Menus and Toolbars Kit for GTK+ applications.
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 apidocs
Group: Documentation
Summary: %{name} API documentation
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: gtk-doc
%description apidocs
This package includes the %{name} API documentation.
%debug_package
%prep
%setup -q -n libgedit-amtk-%{version}
%build
%meson \
-Dgtk_doc=true
%meson_build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%meson_install
%find_lang %{name} --all-name || touch %{name}.lang
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files -n lib%{name} -f %{name}.lang
%defattr(-,root,root)
%{_libdir}/libgedit-amtk-5.so.*
%{_libdir}/girepository-1.0/Amtk-5.typelib
%doc LICENSES/*
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/libgedit-amtk-5/amtk
%{_includedir}/libgedit-amtk-5/amtk/*
%{_libdir}/libgedit-amtk-5.so
%{_libdir}/pkgconfig/libgedit-amtk-5.pc
%{_datadir}/gir-1.0/Amtk-5.gir
%doc NEWS README.md
%files apidocs
%defattr(-,root,root)
%dir %{_datadir}/gtk-doc/html/libgedit-amtk-5
%{_datadir}/gtk-doc/html/libgedit-amtk-5/*
%changelog
* Sun Sep 24 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 5.8.0-1mamba
- update to 5.8.0
* Thu Nov 17 2022 Automatic Build System <autodist@mambasoft.it> 5.6.1-1mamba
- automatic version update by autodist
* Thu Nov 03 2022 Automatic Build System <autodist@mambasoft.it> 5.6.0-1mamba
- automatic version update by autodist
* Sat Jun 11 2022 Automatic Build System <autodist@mambasoft.it> 5.5.1-1mamba
- automatic version update by autodist
* Thu May 26 2022 Automatic Build System <autodist@mambasoft.it> 5.4.1-1mamba
- automatic version update by autodist
* Tue May 03 2022 Automatic Build System <autodist@mambasoft.it> 5.4.0-1mamba
- automatic version update by autodist
* Thu Apr 21 2022 Automatic Build System <autodist@mambasoft.it> 5.3.2-1mamba
- automatic version update by autodist
* Fri Feb 05 2021 Automatic Build System <autodist@mambasoft.it> 5.3.1-1mamba
- automatic version update by autodist
* Sun Sep 27 2020 Automatic Build System <autodist@mambasoft.it> 5.2.0-1mamba
- automatic version update by autodist
* Mon Jan 27 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.2-1mamba
- update to 5.0.2
* Fri Sep 13 2019 Automatic Build System <autodist@mambasoft.it> 5.0.1-1mamba
- automatic version update by autodist
* Sat Sep 29 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.0-1mamba
- package created using the webbuild interface