|
@@ -1,21 +1,18 @@
|
|
-%global pcbver 20091103
|
|
|
|
|
|
+%global pcbver 20140316
|
|
|
|
|
|
Name: pcb
|
|
Name: pcb
|
|
Version: 0.%{pcbver}
|
|
Version: 0.%{pcbver}
|
|
-Release: 3%{?_dist_release}
|
|
|
|
|
|
+Release: 1%{?_dist_release}
|
|
|
|
|
|
Summary: An interactive printed circuit board editor
|
|
Summary: An interactive printed circuit board editor
|
|
Summary(ja): プリント基板エディタ
|
|
Summary(ja): プリント基板エディタ
|
|
License: GPLv2
|
|
License: GPLv2
|
|
Group: Applications/Engineering
|
|
Group: Applications/Engineering
|
|
-URL: http://pcb.sourceforge.net
|
|
|
|
|
|
+URL: http://pcb.geda-project.org/
|
|
|
|
|
|
Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{pcbver}.tar.gz
|
|
Source0: http://downloads.sourceforge.net/sourceforge/%{name}/%{name}-%{pcbver}.tar.gz
|
|
-Source1: pcb-reference-card.pdf
|
|
|
|
-Patch0: pcb-0.20091103-tools.patch
|
|
|
|
-Patch1: pcb-0.20091103-example.patch
|
|
|
|
-# Upstream's patch
|
|
|
|
-Patch2: 0001-fix-some-warnings-suggested-by-Stefan-Salewski.patch
|
|
|
|
|
|
+# sent upstream
|
|
|
|
+Patch0: 0001-Fix-the-AppData-and-update-to-the-latest-spec-versio.patch
|
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRequires: tcl
|
|
BuildRequires: tcl
|
|
@@ -27,12 +24,13 @@ BuildRequires: gtk2-devel
|
|
BuildRequires: gd-devel
|
|
BuildRequires: gd-devel
|
|
BuildRequires: fontconfig-devel
|
|
BuildRequires: fontconfig-devel
|
|
BuildRequires: cups
|
|
BuildRequires: cups
|
|
-BuildRequires: tetex
|
|
|
|
|
|
+BuildRequires: texlive
|
|
BuildRequires: libICE-devel
|
|
BuildRequires: libICE-devel
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: intltool
|
|
BuildRequires: intltool
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: gettext-devel
|
|
BuildRequires: dbus-devel
|
|
BuildRequires: dbus-devel
|
|
|
|
+BuildRequires: mesa-libGLU-devel gtkglext-devel
|
|
|
|
|
|
Requires: m4
|
|
Requires: m4
|
|
Requires: electronics-menu
|
|
Requires: electronics-menu
|
|
@@ -51,6 +49,7 @@ tremendously reduce layout time.
|
|
Summary: Documentation for PCB, An interactive printed circuit board editor
|
|
Summary: Documentation for PCB, An interactive printed circuit board editor
|
|
Summary(ja): プリント回路エディタ PCB のドキュメント
|
|
Summary(ja): プリント回路エディタ PCB のドキュメント
|
|
Group: Applications/Documentation
|
|
Group: Applications/Documentation
|
|
|
|
+BuildArch: noarch
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires(post): /sbin/install-info
|
|
Requires(post): /sbin/install-info
|
|
Requires(preun): /sbin/install-info
|
|
Requires(preun): /sbin/install-info
|
|
@@ -62,20 +61,8 @@ board editor.
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n %{name}-%{pcbver}
|
|
%setup -q -n %{name}-%{pcbver}
|
|
|
|
+%patch0 -p1 -b fix-appdata-file
|
|
|
|
|
|
-# Removes duplicates
|
|
|
|
-%patch0 -p0 -b .duplicates
|
|
|
|
-
|
|
|
|
-%patch2 -p1 -b .upstream
|
|
|
|
-
|
|
|
|
-#
|
|
|
|
-# Preparing docs for %%doc
|
|
|
|
-#
|
|
|
|
-
|
|
|
|
-# renaming to .pcb extension
|
|
|
|
-mv example/LED example/LED.pcb
|
|
|
|
-mv example/LED2 example/LED2.pcb
|
|
|
|
-%patch1 -p0 -b .examples
|
|
|
|
%{__sed} -i \
|
|
%{__sed} -i \
|
|
's|examplesdir = $(pkgdatadir)/examples|examplesdir = @docdir@/examples|' \
|
|
's|examplesdir = $(pkgdatadir)/examples|examplesdir = @docdir@/examples|' \
|
|
example/libraries/Makefile.*
|
|
example/libraries/Makefile.*
|
|
@@ -87,12 +74,11 @@ mv example/LED2 example/LED2.pcb
|
|
%build
|
|
%build
|
|
export WISH=%{_bindir}/wish
|
|
export WISH=%{_bindir}/wish
|
|
|
|
|
|
-export CFLAGS=`echo %optflags | sed "s/-D_FORTIFY_SOURCE=2 // g" -`
|
|
|
|
-
|
|
|
|
# Bug 472618 : disable-update-desktop-database
|
|
# Bug 472618 : disable-update-desktop-database
|
|
# Bug 544657 : --enable-dbus
|
|
# Bug 544657 : --enable-dbus
|
|
%configure \
|
|
%configure \
|
|
--enable-dbus \
|
|
--enable-dbus \
|
|
|
|
+ --enable-toporouter \
|
|
--disable-update-mime-database \
|
|
--disable-update-mime-database \
|
|
--disable-update-desktop-database \
|
|
--disable-update-desktop-database \
|
|
--docdir=%{_docdir}/%{name}-%{version}
|
|
--docdir=%{_docdir}/%{name}-%{version}
|
|
@@ -153,16 +139,21 @@ cp -p AUTHORS COPYING README NEWS ChangeLog README_FILES/CHANGES \
|
|
|
|
|
|
%{__rm} -rf %{buildroot}%{_datadir}/info/dir
|
|
%{__rm} -rf %{buildroot}%{_datadir}/info/dir
|
|
|
|
|
|
-%{__rm} -f %{buildroot}%{_docdir}/%{name}-%{version}/refcard*
|
|
|
|
-cp -p %{SOURCE1} %{buildroot}%{_docdir}/%{name}-%{version}
|
|
|
|
|
|
+mv %{buildroot}%{_docdir}/%{name}-%{version}/refcard.pdf %{buildroot}%{_docdir}/%{name}-%{version}/pcb-reference-card.pdf
|
|
|
|
+
|
|
|
|
+# remove duplicates
|
|
|
|
+%{__rm} -f %{buildroot}%{_bindir}/Merge*
|
|
|
|
+
|
|
|
|
+# L#854396 0.20110918 needlessly installs gts static library & header file
|
|
|
|
+%{__rm} -f %{buildroot}%{_libdir}/libgts.a %{buildroot}%{_includedir}/gts.h
|
|
|
|
|
|
|
|
|
|
# locale's
|
|
# locale's
|
|
%find_lang %{name}
|
|
%find_lang %{name}
|
|
|
|
|
|
|
|
|
|
-%check
|
|
|
|
-make check
|
|
|
|
|
|
+#%check
|
|
|
|
+#make check
|
|
|
|
|
|
|
|
|
|
%clean
|
|
%clean
|
|
@@ -171,19 +162,21 @@ make check
|
|
|
|
|
|
%post
|
|
%post
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
+touch --no-create %{_datadir}/mime/packages &> /dev/null || :
|
|
update-desktop-database &> /dev/null || :
|
|
update-desktop-database &> /dev/null || :
|
|
-update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
|
|
|
%postun
|
|
%postun
|
|
if [ $1 -eq 0 ] ; then
|
|
if [ $1 -eq 0 ] ; then
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
+ touch --no-create %{_datadir}/mime/packages &> /dev/null || :
|
|
|
|
+ update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
fi
|
|
fi
|
|
update-desktop-database &> /dev/null || :
|
|
update-desktop-database &> /dev/null || :
|
|
-update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
|
|
|
%posttrans
|
|
%posttrans
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
+update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
|
|
|
|
|
|
|
|
|
|
%post doc
|
|
%post doc
|
|
@@ -195,37 +188,43 @@ if [ $1 = 0 ] ; then
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
|
|
-# Ignored warning W: pcb devel-file-in-non-devel-package /usr/share/pcb/tools/gerbertotk.c
|
|
|
|
-%files doc
|
|
|
|
-%{_infodir}/%{name}*
|
|
|
|
-%doc %{_docdir}/%{name}-%{version}/pcb-reference-card.pdf
|
|
|
|
-%doc %{_docdir}/%{name}-%{version}/pcb.ps
|
|
|
|
-%doc %{_docdir}/%{name}-%{version}/*.html
|
|
|
|
-%doc %{_docdir}/%{name}-%{version}/examples/thermal
|
|
|
|
-%doc %{_docdir}/%{name}-%{version}/examples/pad
|
|
|
|
-%doc %{_docdir}/%{name}-%{version}/examples/puller
|
|
|
|
-
|
|
|
|
-
|
|
|
|
%files -f %{name}.lang
|
|
%files -f %{name}.lang
|
|
%defattr(-, root, root, -)
|
|
%defattr(-, root, root, -)
|
|
%exclude %{_docdir}/%{name}-%{version}/pcb-reference-card.pdf
|
|
%exclude %{_docdir}/%{name}-%{version}/pcb-reference-card.pdf
|
|
-%exclude %{_docdir}/%{name}-%{version}/pcb.ps
|
|
|
|
|
|
+%exclude %{_docdir}/%{name}-%{version}/pcb.pdf
|
|
%exclude %{_docdir}/%{name}-%{version}/*.html
|
|
%exclude %{_docdir}/%{name}-%{version}/*.html
|
|
%exclude %{_docdir}/%{name}-%{version}/examples/thermal
|
|
%exclude %{_docdir}/%{name}-%{version}/examples/thermal
|
|
%exclude %{_docdir}/%{name}-%{version}/examples/pad
|
|
%exclude %{_docdir}/%{name}-%{version}/examples/pad
|
|
%exclude %{_docdir}/%{name}-%{version}/examples/puller
|
|
%exclude %{_docdir}/%{name}-%{version}/examples/puller
|
|
|
|
+%exclude %{_docdir}/%{name}-%{version}/gcode*
|
|
%doc %{_docdir}/%{name}-%{version}/
|
|
%doc %{_docdir}/%{name}-%{version}/
|
|
-%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/%{name}/
|
|
%{_datadir}/%{name}/
|
|
-%{_mandir}/man1/%{name}*
|
|
|
|
|
|
+%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
+%{_datadir}/applications/%{name}.desktop
|
|
|
|
+%{_datadir}/gEDA/scheme/gnet-pcbfwd.scm
|
|
%{_datadir}/icons/hicolor/*/mimetypes/application-x-*
|
|
%{_datadir}/icons/hicolor/*/mimetypes/application-x-*
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
|
%{_datadir}/mime/packages/pcb.xml
|
|
%{_datadir}/mime/packages/pcb.xml
|
|
%{_datadir}/mimelnk/application/x-*.desktop
|
|
%{_datadir}/mimelnk/application/x-*.desktop
|
|
|
|
+%{_mandir}/man1/%{name}*
|
|
|
|
+
|
|
|
|
+# Ignored warning W: pcb devel-file-in-non-devel-package /usr/share/pcb/tools/gerbertotk.c
|
|
|
|
+%files doc
|
|
|
|
+%{_infodir}/%{name}*
|
|
|
|
+%doc %{_docdir}/%{name}-%{version}/pcb-reference-card.pdf
|
|
|
|
+%doc %{_docdir}/%{name}-%{version}/pcb.pdf
|
|
|
|
+%doc %{_docdir}/%{name}-%{version}/*.html
|
|
|
|
+%doc %{_docdir}/%{name}-%{version}/examples/thermal
|
|
|
|
+%doc %{_docdir}/%{name}-%{version}/examples/pad
|
|
|
|
+%doc %{_docdir}/%{name}-%{version}/examples/puller
|
|
|
|
+%doc %{_docdir}/%{name}-%{version}/gcode*
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Oct 30 2014 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.20140316-1
|
|
|
|
+- updated to source as 20140316
|
|
|
|
+
|
|
* Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.20091103-3
|
|
* Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.20091103-3
|
|
- Initial build for Vine Linux
|
|
- Initial build for Vine Linux
|
|
|
|
|