From 79a1a567f391776aa78695176906c9026cbe85cf Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:25:50 +0100 Subject: [PATCH] package created using the webbuild interface [release 0.2.2-1mamba;Sat Nov 30 2013] --- README.md | 2 ++ granite.spec | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 granite.spec diff --git a/README.md b/README.md index c882c2a..56269ef 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # granite +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. + diff --git a/granite.spec b/granite.spec new file mode 100644 index 0000000..b98f013 --- /dev/null +++ b/granite.spec @@ -0,0 +1,92 @@ +%define majver %(echo %version | cut -d. -f1-2) +Name: granite +Version: 0.2.2 +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 +URL: https://launchpad.net/granite +Source: https://launchpad.net/granite/%{majver}/%{version}/+download/granite-%{version}.tar.gz +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libatk-devel +BuildRequires: libcairo-devel +BuildRequires: libgdk-pixbuf-devel +BuildRequires: libgee1-devel +BuildRequires: libglib-devel +BuildRequires: libgtk-devel +BuildRequires: libpango-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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} +## note: you can add this requirement if .pc files are provided by this package +#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 +%cmake -d build +%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 -n lib%{name} -f %{name}.lang +%defattr(-,root,root) +%{_libdir}/libgranite.so.* +%{_libdir}/girepository-1.0/Granite-1.0.typelib +%{_datadir}/icons/hicolor/*/actions/application-menu.svg +%{_datadir}/icons/hicolor/scalable/actions/application-menu-symbolic.svg +%doc AUTHORS COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_bindir}/granite-demo +%dir %{_includedir}/granite +%{_includedir}/granite/granite.h +%{_includedir}/granite/widgets-utils.h +%{_libdir}/libgranite.so +%{_libdir}/pkgconfig/granite.pc +%{_datadir}/gir-1.0/Granite-1.0.gir +%{_datadir}/vala/vapi/granite.deps +%{_datadir}/vala/vapi/granite.vapi +%doc README + +%changelog +* Sat Nov 30 2013 Silvan Calarco 0.2.2-1mamba +- package created using the webbuild interface