granite/granite.spec

155 lines
5.1 KiB
RPMSpec

### AUTOUPDATE-OFF: 1
%define majver %(echo %version | cut -d. -f1-2)
%define MAJver %(echo %version | cut -d. -f1)
Name: granite
Version: 7.0.0
Release: 1mamba
Summary: An extension to GTK that provides several useful widgets and classes for Graphical User Interfaces
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://launchpad.net/granite
Source: https://github.com/elementary/granite.git/%{version}/granite-%{version}.tar.bz2
License: LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libgee-devel
BuildRequires: libglib-devel
BuildRequires: libgtk-devel
## AUTOBUILDREQ-END
BuildRequires: cmake
BuildConflicts: libgranite <= 0.3.1
%description
Granite is an extension to GTK. Among other things, it provides several useful widgets for Graphical User Interfaces and classes that ease desktop applications development.
%package -n lib%{name}
Group: System/Libraries
Summary: An extension to GTK that provides several useful widgets and classes for Graphical User Interfaces
%description -n lib%{name}
Granite is an extension to GTK. Among other things, it provides several useful widgets for Graphical User Interfaces and classes that ease desktop applications development.
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}
%description -n lib%{name}-devel
This package contains libraries and header files for developing applications that use %{name}.
%package -n lib%{name}-tools
Group: Applications/Development
Summary: Tools provided with %{name}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description -n lib%{name}-tools
This package contains the tools provided with %{name}.
%debug_package
%prep
%setup -q
%build
%meson
%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}/libgranite-%{MAJver}.so.*
%{_libdir}/girepository-1.0/Granite-*.typelib
%doc COPYING
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/granite-%{MAJver}
%{_includedir}/granite-%{MAJver}/*
%{_libdir}/libgranite-%{MAJver}.so
%{_libdir}/pkgconfig/granite-%{MAJver}.pc
%{_datadir}/vala/vapi/granite-%{MAJver}.deps
%{_datadir}/vala/vapi/granite-%{MAJver}.vapi
%{_datadir}/gir-1.0/Granite-*.gir
%files -n lib%{name}-tools
%defattr(-,root,root)
%{_bindir}/granite-7-demo
%{_datadir}/applications/io.elementary.granite-%{MAJver}.demo.desktop
%{_datadir}/metainfo/granite-%{MAJver}.appdata.xml
%changelog
* Sat May 07 2022 Automatic Build System <autodist@mambasoft.it> 7.0.0-1mamba
- automatic version update by autodist
* Thu Nov 25 2021 Automatic Build System <autodist@mambasoft.it> 6.2.0-1mamba
- automatic version update by autodist
* Thu Oct 28 2021 Automatic Build System <autodist@mambasoft.it> 6.1.2-1mamba
- automatic version update by autodist
* Fri Aug 27 2021 Automatic Build System <autodist@mambasoft.it> 6.1.1-1mamba
- automatic version update by autodist
* Thu Jul 15 2021 Automatic Build System <autodist@mambasoft.it> 6.1.0-1mamba
- automatic version update by autodist
* Sat Mar 27 2021 Automatic Build System <autodist@mambasoft.it> 6.0.0-1mamba
- automatic version update by autodist
* Sat Jul 04 2020 Automatic Build System <autodist@mambasoft.it> 5.5.0-1mamba
- automatic version update by autodist
* Tue May 05 2020 Automatic Build System <autodist@mambasoft.it> 5.4.0-1mamba
- automatic version update by autodist
* Sat Apr 04 2020 Automatic Build System <autodist@mambasoft.it> 5.3.1-1mamba
- automatic version update by autodist
* Mon Dec 23 2019 Automatic Build System <autodist@mambasoft.it> 5.3.0-1mamba
- automatic version update by autodist
* Mon Sep 16 2019 Automatic Build System <autodist@mambasoft.it> 5.2.5-1mamba
- automatic version update by autodist
* Thu Aug 15 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.4-1mamba
- update to 5.2.4
* Sun Nov 19 2017 Automatic Build System <autodist@mambasoft.it> 0.5-1mamba
- automatic update by autodist
* Tue Aug 23 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4.0.1-1mamba
- update to 0.4.0.1
* Sun Jul 31 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.4-1mamba
- update to 0.4
* Tue Oct 06 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.1-1mamba
- update to 0.3.1
* Tue Jun 17 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.0-1mamba
- update to 0.3.0
* Wed Mar 26 2014 Automatic Build System <autodist@mambasoft.it> 0.2.3.1-1mamba
- automatic version update by autodist
* Sun Mar 02 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.3-1mamba
- update to 0.2.3
* Sat Nov 30 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 0.2.2-1mamba
- package created using the webbuild interface