added debug package and removed python requirements [release 3.36.0-2mamba;Fri Jan 01 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 23:12:59 +01:00
parent dbdea7869d
commit 3c64b21993

View File

@ -1,32 +1,23 @@
%define gnomever 3.4
%define gnomemajver %(echo %gnomever | cut -d. -f 1-2)
%define majver %(echo %version | cut -d. -f 1-2) %define majver %(echo %version | cut -d. -f 1-2)
%define gnomegroup desktop
%define pkgname gnome-menus
Name: gnome-menus Name: gnome-menus
Version: 3.36.0 Version: 3.36.0
Release: 1mamba Release: 2mamba
Summary: GNOME menu library Summary: GNOME menu library
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: openmamba Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it> Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.gnome.org URL: http://www.gnome.org
# bugfixes: http://ftp.gnome.org/pub/GNOME/sources/%{pkgname} Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-menus/%{majver}/gnome-menus-%{version}.tar.xz
Source: http://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{majver}/%{pkgname}-%{version}.tar.xz
License: GPL, LGPL License: GPL, LGPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: ldconfig
BuildRequires: libglib-devel
## AUTOBUILDREQ-END
BuildRequires: intltool BuildRequires: intltool
BuildRequires: gettext-devel BuildRequires: gettext-devel
BuildRequires: pkgconfig BuildRequires: pkgconfig
BuildRequires: libfam-devel
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libglib-devel
BuildRequires: libpython-devel
BuildRequires: python
## AUTOBUILDREQ-END
%{py_requires}
Obsoletes: libgnome-menus Obsoletes: libgnome-menus
Provides: libgnome-menus = %{?epoch:%epoch:}%{version}-%{release} Provides: libgnome-menus = %{?epoch:%epoch:}%{version}-%{release}
Requires: xdg-utils >= 1.0.2-4mamba Requires: xdg-utils >= 1.0.2-4mamba
@ -47,29 +38,24 @@ Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel %description devel
This package implements the freedesktop.org desktop menu specification for the GNOME desktop. Also contained in this package, are the menu layout configuration files, .directory and assorted menu utility programs. This package implements the freedesktop.org desktop menu specification for the GNOME desktop. Also contained in this package, are the menu layout configuration files, .directory and assorted menu utility programs.
This package contains static libraries and header files needed for development.
This package contains static libraries and header files need for development. %debug_package
%prep %prep
%setup -q -n %{pkgname}-%{version} %setup -q
%build %build
%configure %configure
%make %make
%install %install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall %makeinstall
%find_lang %{name} %find_lang %{name}
rm -f %{buildroot}%{_libdir}/%{python_sitearch}/*.la
rm -f %{buildroot}%{_libdir}/%{python_sitearch}/*.a
#mv %{buildroot}%{_sysconfdir}/xdg/menus/applications.menu %{buildroot}%{_sysconfdir}/xdg/menus/gnome-applications.menu
#rm -f %{buildroot}%{_datadir}/desktop-directories/Desktop.directory
#rm -f %{buildroot}%{_bindir}/gnome-menu-spec-test
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -79,16 +65,9 @@ rm -f %{buildroot}%{_libdir}/%{python_sitearch}/*.a
%files -f %{name}.lang %files -f %{name}.lang
%defattr(-,root,root) %defattr(-,root,root)
%{_sysconfdir}/xdg/menus/gnome-applications.menu %{_sysconfdir}/xdg/menus/gnome-applications.menu
#%{_bindir}/gmenu-simple-editor
%{_libdir}/libgnome-menu-3.so.* %{_libdir}/libgnome-menu-3.so.*
%{_libdir}/girepository-1.0/GMenu-*.typelib %{_libdir}/girepository-1.0/GMenu-*.typelib
#%dir %{python_sitearch}/GMenuSimpleEditor %{_datadir}/desktop-directories/*.directory
#%{python_sitearch}/GMenuSimpleEditor/*
#%{_datadir}/applications/
%{_datadir}/desktop-directories/
#%{_datadir}/gnome-menus/glade/
#%{_datadir}/gnome-menus/examples/gnome-menus-ls.py
#%{_datadir}/gnome-menus/ui/gmenu-simple-editor.ui
%doc AUTHORS COPYING COPYING.LIB %doc AUTHORS COPYING COPYING.LIB
%files devel %files devel
@ -103,6 +82,9 @@ rm -f %{buildroot}%{_libdir}/%{python_sitearch}/*.a
%doc ChangeLog NEWS README %doc ChangeLog NEWS README
%changelog %changelog
* Fri Jan 01 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 3.36.0-2mamba
- added debug package and removed python requirements
* Thu Mar 12 2020 Automatic Build System <autodist@mambasoft.it> 3.36.0-1mamba * Thu Mar 12 2020 Automatic Build System <autodist@mambasoft.it> 3.36.0-1mamba
- automatic version update by autodist - automatic version update by autodist