]> git.pld-linux.org Git - packages/kicad.git/blame - kicad.spec
- no idea for locales for now, commented according section
[packages/kicad.git] / kicad.spec
CommitLineData
2a9578af
ŁK
1%define libver 1.0
2%define docver 1.1
4b5aca64 3Summary: KiCad - is a GPL'd suite of programs for EDA
34a5277b 4Summary(pl.UTF-8): KiCad - zestaw programów na licencji GPL zaliczany do kategorii EDA
4b5aca64 5Name: kicad
46712b30 6Version: 20110429
22291059 7Release: 0.1
8License: GPL v2+
34a5277b 9Group: X11/Applications
46712b30 10Source0: http://iut-tice.ujf-grenoble.fr/cao/%{name}-sources_2011-04-29-BZR2986.zip
11# Source0-md5: e5d5311ad8a6387b1e96a9ee63088238
22291059 12Source1: http://downloads.sourceforge.net/kicad/%{name}-library-%{libver}.tar.bz2
2a9578af 13# Source1-md5: 9c91940aa5f5563bb86c52ff07e8f99a
22291059 14Source2: http://downloads.sourceforge.net/kicad/%{name}-doc-%{docver}.tar.bz2
2a9578af
ŁK
15# Source2-md5: fcfbc94f675a19db51370e97b88803b1
16Source3: %{name}.desktop
4b5aca64 17URL: http://kicad.sourceforge.net/
254fbc44 18BuildRequires: boost-devel
b3e6c3ec 19BuildRequires: cmake >= 2.6.4
22291059 20BuildRequires: rpmbuild(macros) >= 1.600
34a5277b 21BuildRequires: sed >= 4.0
254fbc44 22BuildRequires: which
b3e6c3ec 23BuildRequires: wxGTK2-unicode-gl-devel >= 2.8.11
24BuildRequires: wxWidgets-devel >= 2.8.11
25BuildRequires: zlib-devel
4b5aca64 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29KiCad consists of a project manager and four main programs:
30- kicad - the project manager.
31- eeschema - the schematic editor.
32- cvpcb - the footprint selector for components used in the circuit
33 design.
34- pcbnew - the PCB layout program.
35- gerbview - the Gerber (photoplotter documents) viewer.
36
37%description -l pl.UTF-8
22291059 38KiCad składa się z menadżera projektów oraz czterech głównych
4b5aca64 39programów:
40- kicad - menadżer projektów.
41- eeschema - edytor schematów.
34a5277b
JB
42- cvpcb - narzędzie do wybierania elementów używanych przy
43 projektowaniu płytek drukowanych.
44- pcbnew - program do projektowania płytek drukowanych.
45- gerbview - przeglądarka plików Gerber (dokumentów dla fotoplotera).
4b5aca64 46
47%prep
f3e270ef 48%setup -q -n %{name}_sources
4b5aca64 49
50%build
46712b30 51install -d build
52cd build
22291059 53%cmake \
46712b30 54 -DKICAD_STABLE_VERSION=ON \
46712b30 55 -DwxWidgets_USE_STATIC=OFF \
69137d90 56 -DwxWidgets_CONFIG_EXECUTABLE="%{_bindir}/wx-gtk2-unicode-config" \
46712b30 57 -DKICAD_MINIZIP=ON \
58 -DKICAD_GOST=ON \
46712b30 59 ..
60
f3e270ef 61%{__make}
4b5aca64 62
63%install
64rm -rf $RPM_BUILD_ROOT
65
22291059 66%{__make} -C build install \
7a3fb9b5
ŁK
67 KICAD_INTERNAT=$RPM_BUILD_ROOT%{_localedir} \
68 KICAD_PLUGINS=$RPM_BUILD_ROOT%{_libdir}/%{name}/plugins \
2a9578af
ŁK
69 KICAD_DATA=$RPM_BUILD_ROOT%{_datadir}/%{name} \
70 KICAD_DOCS=$RPM_BUILD_ROOT%{_datadir}/%{name}/help \
4b5aca64 71 DESTDIR=$RPM_BUILD_ROOT \
72 PREFIX=$RPM_BUILD_ROOT%{_prefix}
22291059 73
bedc0324 74install -d $RPM_BUILD_ROOT%{_desktopdir}
2d418e55 75cp -p %{SOURCE3} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
4b5aca64 76
82f44bc1 77#for loc in $RPM_BUILD_ROOT%{_localedir}/*; do
78# install -d $loc/LC_MESSAGES
79# mv $loc/*.mo $loc/LC_MESSAGES
80#done
7a3fb9b5 81
2a9578af 82for loc in $RPM_BUILD_ROOT%{_datadir}/%{name}/help/*; do
2d418e55 83 rm -rf $loc/docs_src
2a9578af
ŁK
84done
85
7a3fb9b5
ŁK
86%find_lang %{name}
87
4b5aca64 88%clean
89rm -rf $RPM_BUILD_ROOT
90
7a3fb9b5 91%files -f %{name}.lang
4b5aca64 92%defattr(644,root,root,755)
7a3fb9b5 93%doc change_log.txt regex_doc.txt todo.txt version.txt
2d418e55
ER
94%attr(755,root,root) %{_bindir}/cvpcb
95%attr(755,root,root) %{_bindir}/eeschema
96%attr(755,root,root) %{_bindir}/gerbview
7a3fb9b5
ŁK
97%dir %{_libdir}/%{name}
98%dir %{_libdir}/%{name}/plugins
2d418e55 99%attr(755,root,root) %{_libdir}/%{name}/plugins/netlist_form_pads-pcb
2a9578af 100%{_datadir}/%{name}
bedc0324 101%{_desktopdir}/%{name}.desktop
This page took 0.09617 seconds and 4 git commands to generate.