source: projects/specs/branches/6/g/gerbv/gerbv-vl.spec @ 1944

Revision 1944, 5.0 KB checked in by owa, 14 years ago (diff)

rebuilt with rpm-4.8.1

Line 
1Name:             gerbv
2Version:          2.4.0
3Release:          2%{?dist}
4Summary:          Gerber file viewer from the gEDA toolkit
5
6Group:            Applications/Engineering
7License:          GPLv2
8URL:              http://gerbv.gpleda.org/index.html
9
10Source:           http://downloads.sourceforge.net/gerbv/%{name}-%{version}.tar.gz
11
12BuildRoot:        %{_tmppath}/%{name}-%{version}-root
13BuildRequires:    gtk2-devel
14BuildRequires:    libpng-devel
15BuildRequires:    desktop-file-utils
16BuildRequires:    automake
17BuildRequires:    ImageMagick-devel
18
19Requires:         electronics-menu
20
21%description
22Gerber Viewer (gerbv) is a viewer for Gerber files. Gerber files
23are generated from PCB CAD system and sent to PCB manufacturers
24as basis for the manufacturing process. The standard supported
25by gerbv is RS-274X.
26
27gerbv also supports drill files. The format supported are known
28under names as NC-drill or Excellon. The format is a bit undefined
29and different EDA-vendors implement it different.
30
31gerbv is listed among Fedora Electronic Lab (FEL) packages.
32
33%package devel
34Summary:          Header files, libraries and development documentation for %{name}
35Group:            Development/Libraries
36Requires:         %{name} = %{version}-%{release}
37Requires:         gtk2-devel
38Requires:         libpng-devel
39
40%description devel
41This package contains the header files, libraries and development
42documentation for %{name}. If you like to develop programs using %{name},
43you will need to install %{name}-devel.
44
45
46%prep
47%setup -q
48
49%build
50
51# default measurement units set to millimeters
52%configure             \
53   --enable-exportpng  \
54   --enable-unit-mm    \
55   --disable-update-desktop-database \
56   --disable-static    \
57   --enable-gtk2
58
59# clean unused-direct-shlib-dependencies
60sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
61
62make %{?_smp_mflags}
63
64
65%install
66%{__rm} -rf %{buildroot}
67make INSTALL="%{__install} -p" install DESTDIR=%{buildroot}
68
69
70desktop-file-install --vendor ""               \
71    --remove-category Education                \
72    --dir %{buildroot}%{_datadir}/applications \
73    --delete-original                          \
74    %{buildroot}%{_datadir}/applications/%{name}.desktop
75
76
77%{__rm} -f %{buildroot}%{_libdir}/libgerbv.la
78
79%{__rm} -f  {doc,example}/Makefile*
80
81pushd example/
82for dir in * ; do
83  [ -d $dir ] && %{__rm} -f $dir/Makefile*
84done
85popd
86
87
88pushd doc/
89for dir in * ; do
90  [ -d $dir ] && %{__rm} -f $dir/Makefile*
91done
92popd
93
94
95%clean
96%{__rm} -rf %{buildroot}
97
98
99%post
100/sbin/ldconfig
101touch --no-create %{_datadir}/icons/hicolor || :
102%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
103
104%postun
105/sbin/ldconfig
106touch --no-create %{_datadir}/icons/hicolor || :
107%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
108
109
110
111%files
112%defattr(-,root,root,-)
113%doc AUTHORS ChangeLog COPYING NEWS README TODO CONTRIBUTORS HACKING
114%doc example/
115%doc doc/example-code
116%doc doc/eagle
117%doc doc/sources.txt
118%doc doc/aperturemacro.txt
119%doc doc/PNG-print
120%{_bindir}/%{name}
121%{_datadir}/%{name}/
122%{_mandir}/man1/gerbv.*
123%{_datadir}/icons/hicolor/??x??/apps/%{name}.png
124%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
125%{_datadir}/applications/%{name}.desktop
126%{_libdir}/lib%{name}.so.*
127
128
129%files devel
130%defattr(-,root,root,-)
131%dir %{_includedir}/%{name}-%{version}
132%{_includedir}/%{name}-%{version}/%{name}.h
133%{_libdir}/lib%{name}.so
134%{_libdir}/pkgconfig/libgerbv.pc
135
136
137%changelog
138* Tue Sep 28 2010 Shu KONNO <owa@bg.wakwak.com> 2.4.0-2
139- rebuilt with rpm-4.8.1 for pkg-config
140
141* Sun Jun 20 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.4.0-1
142- Initial build for Vine Linux
143
144* Sun Sep 13 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.3.0-3
145- Fixed gerbv-2.3.0-1 png failed to open - FEL ticket #47
146- Fixed bug 2841371 (segfault on edit->orientation with no layer loaded)
147
148* Sat Jul 11 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.3.0-1
149- new upstream release
150
151* Sat Mar 07 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.2.0-3
152- added requires electronics-menu #485585
153
154* Thu Jan 22 2009 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.2.0-1
155- new upstream release
156
157* Thu Dec  4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 2.1.0-3
158- Include unowned headers directory.
159
160* Thu Nov 13 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.1.0-2
161- BR ImageMagick-devel added
162
163* Thu Nov 13 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.1.0-1
164- New upstream release and split into -devel package
165
166* Tue Feb 01 2008 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 2.0.0-1
167- New upstream release
168
169* Tue Dec 04 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0.3-1
170- new upstream release
171
172* Thu Aug 23 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0.2-3
173- mass rebuild for fedora 8 - ppc
174
175* Thu Jun 28 2007 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0.2-2
176- remove gdk-pixbuf-devel as BR
177
178* Thu Sep 14 2006 Chitlesh Goorah <chitlesh [AT] fedoraproject DOT org> - 1.0.2-1
179- Initial package for Fedora Core
Note: See TracBrowser for help on using the repository browser.