Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-release-src > by-pkgid > 441eecdb949bc9c6112f4f9d7cc369da > files > 5

kicad-20130725.bzr4024-5.mga5.src.rpm

%define	Werror_cflags	%nil

# Use ./update.sh to generate latest tarballs and the corresponding
# specfile fragment

%define	date 20130725
%define	revision 4024

%define	docname kicad-doc
%define	docdate 20130926
%define	docrevision 493
%define	docversion %{docdate}.bzr%{docrevision}

%define	libname kicad-library
%define	libdate 20130923
%define	librevision 274
%define	libversion %{libdate}.bzr%{librevision}


Name:		kicad
Summary:	An open source program for the creation of electronic schematic diagrams
Version:	%{date}.bzr%{revision}
Release:	%mkrel 5
Source0:	%{name}-sources-bzr%{revision}.tar.bz2
Source1:	%{docname}-bzr%{docrevision}.tar.bz2
Source2:	%{libname}-bzr%{librevision}.tar.bz2
Source3:	eeschema.svg
License:	GPLv2+
Group:		Sciences/Computer science
Url:		http://www.lis.inpg.fr/realise_au_lis/kicad/
BuildRequires:	libwxgtku-devel >= 2.6
BuildRequires:	mesa-common-devel
BuildRequires:	imagemagick
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
Requires:	%{libname}
Requires:	%{docname}
Recommends:	%{name}-locale

%description
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad is a set of four programs and a project manager:

* Eeschema:	Schematic entry.
* Pcbnew:	Board editor.
* Gerbview:	GERBER viewer (photoplotter documents).
* Cvpcb:	footprint selector for components used in the circuit design.
* Kicad:	project manager.

%package doc
Summary:	Documentation for kicad (creation of electronic schematic diagrams)
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
BuildArch:	noarch

%description doc
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-doc is the documentation for kicad.

%package locales-ca
Summary:	Catalan Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-ca
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-ca
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Catalan locales for kicad.

%package locales-cs
Summary:	Czech Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-cs
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-cs
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Czech locales for kicad.

%package locales-de
Summary:	German Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-de
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-de
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides German locales for kicad.

%package locales-en
Summary:	English Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-en
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-en
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides English locales for kicad.

%package locales-es
Summary:	Spanish Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-es
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-es
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Spanish locales for kicad.

%package locales-fi
Summary:	Finnish Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-fi
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-fi
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Finnish locales for kicad.

%package locales-fr
Summary:	French Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-fr
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-fr
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides French locales for kicad.

%package locales-hu
Summary:	Hungarian Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-hu
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-hu
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Hungarian locales for kicad.

%package locales-it
Summary:	Italian Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-it
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-it
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Italian locales for kicad.

%package locales-ja
Summary:	Japanese Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-ja
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-ja
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Japanese locales for kicad.

%package locales-ko
Summary:	Korean Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-ko
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-ko
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Korean locales for kicad.

%package locales-nl
Summary:	Dutch Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-nl
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-nl
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Dutch locales for kicad.

%package locales-pl
Summary:	Polish Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-pl
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-pl
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Polish locales for kicad.

%package locales-pt
Summary:	Portuguese Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-pt
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-pt
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Portuguese locales for kicad.

%package locales-ru
Summary:	Russian Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-ru
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-ru
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Russian locales for kicad.

%package locales-sl
Summary:	Slovenian Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-sl
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-sl
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Slovenian locales for kicad.

%package locales-sv
Summary:	Salvadoran Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-sv
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-sv
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Salvadoran locales for kicad.

%package locales-zh-cn
Summary:	Chinese Kicad locales
Version:	%{docversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
Requires:	locales-zh
Provides:	%{name}-locale
BuildArch:	noarch

%description locales-zh-cn
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-locales provides Chinese locales for kicad.

%package library
Summary:	Library for kicad (creation of electronic schematic diagrams)
Version:	%{libversion}
Release:	%mkrel 4
License:	GPL
Requires:	%{name}
BuildArch:	noarch

%description library
Kicad is an open source (GPL) program for the creation of electronic
schematic diagrams and printed circuit board artwork.

Kicad-library is a set of library needed by kicad.

%prep
%setup -q -T -b 0 -n %{name}
%setup -q -T -b 1 -n %{docname}
%setup -q -T -b 2 -n %{libname}
cd ..

%build
export LC_ALL=C
cd ../

# Building kicad-doc
pushd %{docname}
	%cmake \
		-DKICAD_STABLE_VERSION:BOOL=ON \
		-DCMAKE_BUILD_TYPE=Release
	%make
popd

# Building kicad-library
pushd %{libname}
	%cmake \
		-DKICAD_STABLE_VERSION:BOOL=ON \
		-DCMAKE_BUILD_TYPE=Release
	%make
popd

# Building kicad
pushd %{name}
	%cmake \
		-DBUILD_SHARED_LIBS:BOOL=OFF \
		-DKICAD_STABLE_VERSION:BOOL=ON \
		-DCMAKE_BUILD_TYPE=Release

	#ugly workaround to fix build
	#dunno what causes the extra ; in CXX_FLAGS which causes the failure
	find . -name flags.make -exec sed -i -e 's,-pthread;-fpermissive,-pthread -fpermissive,g' {} \;
	find . -name link.txt -exec sed -i -e 's,-pthread;-fpermissive,-pthread -fpermissive,g' {} \;

	%make
popd

%install
cd ../

# Installing kicad-doc
pushd %{docname}
	make -C build DESTDIR=%buildroot install
popd

# Installing kicad-library
pushd %{libname}
	make -C build DESTDIR=%buildroot install
popd

# Installing kicad
pushd %{name}
	make -C build DESTDIR=%buildroot install

	# create desktop file
	desktop-file-install --vendor='' \
		--remove-category='Scientific' \
		--add-category='Science;Electronics;Education' \
		--dir=%buildroot%{_datadir}/applications \
		%buildroot%{_datadir}/applications/*.desktop

	# create icons
	mkdir -p %{buildroot}%{_miconsdir} %{buildroot}%{_iconsdir} %{buildroot}%{_liconsdir}
	convert -resize 16x16 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{buildroot}%{_miconsdir}/%{name}.png
	convert -resize 32x32 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{buildroot}%{_iconsdir}/%{name}.png
	convert -resize 48x48 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %{buildroot}%{_liconsdir}/%{name}.png
	# add icon for eeschema, mga#8425
	install -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/eeschema.svg
	convert -resize 16x16 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/eeschema.svg %{buildroot}%{_miconsdir}/eeschema.png
	convert -resize 32x32 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/eeschema.svg %{buildroot}%{_iconsdir}/eeschema.png
	convert -resize 48x48 %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/eeschema.svg %{buildroot}%{_liconsdir}/eeschema.png
popd

%files
%{_bindir}/*
%{_prefix}/lib/%{name}/plugins/netlist_form_pads-pcb.xsl
%{_iconsdir}/*/*/*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/eeschema.png
%{_liconsdir}/eeschema.png
%{_miconsdir}/eeschema.png
%{_datadir}/%{name}/demos/
%{_datadir}/%{name}/template/
%{_datadir}/applications
%{_datadir}/mime/packages/kicad.xml
%{_datadir}/mimelnk/application/x-kicad-project.desktop
%{_datadir}/mimelnk/application/x-kicad-schematic.desktop

%files doc
%doc %{_datadir}/doc/%{name}

%files locales-ca
%{_datadir}/%{name}/internat/ca/

%files locales-cs
%{_datadir}/%{name}/internat/cs/

%files locales-de
%{_datadir}/%{name}/internat/de/

%files locales-en
# No files in this package

%files locales-es
%{_datadir}/%{name}/internat/es/

%files locales-fi
%{_datadir}/%{name}/internat/fi/

%files locales-fr
%{_datadir}/%{name}/internat/fr/

%files locales-hu
%{_datadir}/%{name}/internat/hu/

%files locales-it
%{_datadir}/%{name}/internat/it/

%files locales-ja
%{_datadir}/%{name}/internat/ja/

%files locales-ko
%{_datadir}/%{name}/internat/ko/

%files locales-nl
%{_datadir}/%{name}/internat/nl/

%files locales-pl
%{_datadir}/%{name}/internat/pl/

%files locales-pt
%{_datadir}/%{name}/internat/pt/

%files locales-ru
%{_datadir}/%{name}/internat/ru/

%files locales-sl
%{_datadir}/%{name}/internat/sl

%files locales-sv
%{_datadir}/%{name}/internat/sv/

%files locales-zh-cn
%{_datadir}/%{name}/internat/zh_CN/

%files library
%{_datadir}/%{name}/library
%{_datadir}/%{name}/modules


%changelog
* Sat Sep 27 2014 tv <tv> 20130725.bzr4024-5.mga5
+ Revision: 726643
- rebuild for missing pythoneggs deps
- s/uggests:/Recommends:/

  + umeabot <umeabot>
    - Mageia 5 Mass Rebuild

* Wed Feb 05 2014 stormi <stormi> 20130725.bzr4024-3.mga5
+ Revision: 583863
- add missing icon for eeschema (mga#8425), thanks to AlexL

* Mon Oct 21 2013 umeabot <umeabot> 20130725.bzr4024-2.mga4
+ Revision: 537828
- Mageia 4 Mass Rebuild

* Fri Sep 27 2013 akien <akien> 20130725.bzr4024-1.mga4
+ Revision: 487797
- Reverting erroneous libpath introduced in r487685
- Update to current stable release (r4024 for the program) using update.sh script
- Removed trailing spaces and fixed inconsistent use of spaces and tabs

* Wed Jul 10 2013 fwang <fwang> 20111221.bzr3253-4.mga4
+ Revision: 452341
- rebuild for new boost

* Sat Jan 12 2013 umeabot <umeabot> 20111221.bzr3253-3.mga3
+ Revision: 356169
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Wed Dec 05 2012 juancho <juancho> 20111221.bzr3253-2.mga3
+ Revision: 326831
- Added upstream patch to fix boost build failure.

* Thu Jan 19 2012 fwang <fwang> 20111221.bzr3253-1.mga2
+ Revision: 198405
- build with wxgtku

  + mcb30 <mcb30>
    - Remove requirement for specific versions of library and doc packages
    - Update to latest stable version (using auto-update script)
      Fix BuildRequires to work on Mageia 1 as well as Cauldron
    - Add auto-update script to rebuild tarballs from bzr checkouts

* Sat Dec 17 2011 wally <wally> 20110720.bzr3052-2.mga2
+ Revision: 182876
- fix build
- wxGTK-devel BR was renamed to wxgtk-devel

  + mcb30 <mcb30>
    - Add Requires: locales-XX for each locale subpackage
    - Provide dummy "en" locale package to minimise user confusion

* Sat Nov 12 2011 shlomif <shlomif> 20110720.bzr3052-1.mga2
+ Revision: 166922
- software is an uncountable noun
- software is an uncountable noun

  + mcb30 <mcb30>
    - Removed old sources (not automatically removed via "mgarepo sync")
    - Update to latest stable version
    - Remove specfile cruft
    - Remove specfile cruft
    - imported package kicad