SHA256
1
0
forked from pool/nemiver

Accepting request 581277 from GNOME:Next

spec-cleaner

OBS-URL: https://build.opensuse.org/request/show/581277
OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/nemiver?expand=0&rev=45
This commit is contained in:
Dominique Leuenberger 2018-03-05 13:45:19 +00:00 committed by Git OBS Bridge
parent c7f3c7c816
commit e7f6d2914c
2 changed files with 20 additions and 22 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Feb 28 16:37:31 UTC 2018 - dimstar@opensuse.org
- Modernize spec-file by calling spec-cleaner
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Feb 2 10:20:10 UTC 2017 - adam.majer@suse.de Thu Feb 2 10:20:10 UTC 2017 - adam.majer@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package nemiver # spec file for package nemiver
# #
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,30 +17,22 @@
%define scm_bootstrap 0 %define scm_bootstrap 0
Name: nemiver Name: nemiver
Version: 0.9.6 Version: 0.9.6
Release: 0 Release: 0
Summary: Nemiver graphical debugger Summary: Nemiver graphical debugger
License: GPL-2.0+ License: GPL-2.0-or-later
Group: Development/Tools/Debuggers Group: Development/Tools/Debuggers
Url: http://home.gna.org/nemiver/ URL: http://home.gna.org/nemiver/
Source0: http://download.gnome.org/sources/nemiver/0.9/%{name}-%{version}.tar.xz Source0: http://download.gnome.org/sources/nemiver/0.9/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM nemiver-build-fix.patch bgo#763840 zaitor@opensuse.org -- Fix build with new mm stack # PATCH-FIX-UPSTREAM nemiver-build-fix.patch bgo#763840 zaitor@opensuse.org -- Fix build with new mm stack
Patch0: nemiver-build-fix.patch Patch0: nemiver-build-fix.patch
%if 0%{?scm_bootstrap}
BuildRequires: gnome-common
%endif
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: gdb BuildRequires: gdb
BuildRequires: intltool BuildRequires: intltool
BuildRequires: libgtop-devel BuildRequires: libgtop-devel
BuildRequires: pkgconfig
BuildRequires: sqlite-devel BuildRequires: sqlite-devel
BuildRequires: translation-update-upstream BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files BuildRequires: update-desktop-files
@ -54,8 +46,15 @@ BuildRequires: pkgconfig(gtksourceviewmm-3.0) >= 3.0
BuildRequires: pkgconfig(vte-2.91) >= 0.28 BuildRequires: pkgconfig(vte-2.91) >= 0.28
Requires: gdb Requires: gdb
Recommends: %{name}-lang Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires %glib2_gsettings_schema_requires
%if 0%{?scm_bootstrap}
BuildRequires: gnome-common
%endif
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
%description %description
Nemiver is a standalone graphical debugger that integrates well in the Nemiver is a standalone graphical debugger that integrates well in the
@ -75,6 +74,7 @@ the well known GNU Debugger gdb to debug C / C++ programs.
This package contains the development files to build debugger backend. This package contains the development files to build debugger backend.
%lang_package %lang_package
%prep %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
@ -94,17 +94,13 @@ make %{?_smp_mflags}
%suse_update_desktop_file nemiver %suse_update_desktop_file nemiver
%find_lang %{name} %{?no_lang_C} %find_lang %{name} %{?no_lang_C}
# remove la files # remove la files
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print find %{buildroot} -type f -name "*.la" -delete -print
# create symlinks for man pages # create symlinks for man pages
%fdupes -s %{buildroot}/%{_mandir} %fdupes -s %{buildroot}/%{_mandir}
# create hardlinks for the rest # create hardlinks for the rest
%fdupes %{buildroot} %fdupes %{buildroot}
%clean
rm -rf %{buildroot}
%if 0%{?suse_version} > 1130 %if 0%{?suse_version} > 1130
%post %post
%desktop_database_post %desktop_database_post
%icon_theme_cache_post %icon_theme_cache_post
@ -112,7 +108,6 @@ rm -rf %{buildroot}
%endif %endif
%if 0%{?suse_version} > 1130 %if 0%{?suse_version} > 1130
%postun %postun
%desktop_database_postun %desktop_database_postun
%icon_theme_cache_postun %icon_theme_cache_postun
@ -120,7 +115,6 @@ rm -rf %{buildroot}
%endif %endif
%files %files
%defattr(-,root,root)
%doc AUTHORS README NEWS TODO %doc AUTHORS README NEWS TODO
%doc %{_datadir}/help/C/%{name}/ %doc %{_datadir}/help/C/%{name}/
%{_bindir}/* %{_bindir}/*
@ -134,10 +128,9 @@ rm -rf %{buildroot}
%dir %{_datadir}/icons/hicolor/symbolic/ %dir %{_datadir}/icons/hicolor/symbolic/
%dir %{_datadir}/icons/hicolor/symbolic/apps %dir %{_datadir}/icons/hicolor/symbolic/apps
%{_datadir}/icons/hicolor/*/apps/nemiver*.* %{_datadir}/icons/hicolor/*/apps/nemiver*.*
%{_mandir}/man1/nemiver.1.gz %{_mandir}/man1/nemiver.1%{ext_man}
%files devel %files devel
%defattr(-,root,root)
%doc AUTHORS README NEWS TODO %doc AUTHORS README NEWS TODO
%{_includedir}/nemiver/ %{_includedir}/nemiver/