diff --git a/gerbv.spec b/gerbv.spec index 98d487c..7bdf14a 100644 --- a/gerbv.spec +++ b/gerbv.spec @@ -1,29 +1,16 @@ -# Features in Fedora/Free Electronic Lab -# Supported targets: EL-5, EL-6, F-15, F-16 and rawhide - -# Fixing the end-of-line encodings is omitted because of -# https://fedorahosted.org/fedora-electronic-lab/ticket/47 - -# Known bug reports not treated by this SPEC: -# SF#3469821 Rendering issue with fast and high quality- NOT FIXED YET - Name: gerbv Version: 2.6.0 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Gerber file viewer from the gEDA toolkit - Group: Applications/Engineering License: GPLv2 URL: http://gerbv.gpleda.org/ - Source: http://downloads.sourceforge.net/gerbv/%{name}-%{version}.tar.gz -# Fixed bug 2841371 (segfault on edit->orientation with no layer loaded - -BuildRequires: gtk2-devel, libpng-devel, desktop-file-utils, automake, ImageMagick-devel - -Requires(postun): /sbin/ldconfig -Requires(post): /sbin/ldconfig - +BuildRequires: automake +BuildRequires: desktop-file-utils +BuildRequires: gtk2-devel +BuildRequires: ImageMagick-devel +BuildRequires: libpng-devel Requires: electronics-menu %description @@ -51,7 +38,7 @@ you will need to install %{name}-devel. %prep -%setup -q +%autosetup %build # default measurement units set to millimeters @@ -71,11 +58,10 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool # Clean unused-direct-shlib-dependencies sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool -%{__make} %{?_smp_mflags} +%make_build %install -%{__rm} -rf %{buildroot} %{__make} INSTALL="%{__install} -p" install DESTDIR=%{buildroot} @@ -87,7 +73,6 @@ desktop-file-install --vendor "" \ %{__rm} -f %{buildroot}%{_libdir}/libgerbv.la - %{__rm} -f {doc,example}/Makefile* pushd example/ @@ -104,20 +89,18 @@ done popd +%ldconfig_scriptlets -%post -p /sbin/ldconfig - -%postun -p /sbin/ldconfig %files -%defattr(-,root,root,-) -%doc AUTHORS ChangeLog COPYING NEWS README TODO CONTRIBUTORS HACKING +%doc AUTHORS ChangeLog NEWS README TODO CONTRIBUTORS HACKING %doc example/ %doc doc/example-code %doc doc/eagle %doc doc/sources.txt %doc doc/aperturemacro.txt %doc doc/PNG-print +%license COPYING %{_bindir}/%{name} %{_datadir}/%{name}/ %{_mandir}/man1/gerbv.* @@ -128,7 +111,6 @@ popd %files devel -%defattr(-,root,root,-) %dir %{_includedir}/%{name}-%{version} %{_includedir}/%{name}-%{version}/%{name}.h %{_libdir}/lib%{name}.so @@ -136,6 +118,9 @@ popd %Changelog +* Tue Apr 10 2018 Filipe Rosset - 2.6.0-14 +- spec cleanup / modernization + * Wed Feb 07 2018 Fedora Release Engineering - 2.6.0-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild @@ -198,7 +183,7 @@ popd * Thu Nov 13 2008 Chitlesh Goorah - 2.1.0-1 - New upstream release and split into -devel package -* Tue Feb 01 2008 Chitlesh Goorah - 2.0.0-1 +* Fri Feb 01 2008 Chitlesh Goorah - 2.0.0-1 - New upstream release * Tue Dec 04 2007 Chitlesh Goorah - 1.0.3-1