forked from drahnr/oregano
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoregano.spec.in
106 lines (85 loc) · 3.32 KB
/
oregano.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
Name: oregano
Summary: Schematic capture and simulation of electrical circuits
Version: @VERSION@
Release: 1%{?dist}
License: GPLv2+
Group: Applications/Engineering
Source0: https://github.com/drahnr/oregano/archive/oregano-%{version}.tar.xz
Url: https://ahoi.io/project/oregano
BuildRequires: gtk3-devel
BuildRequires: libxml2-devel
BuildRequires: gtksourceview3-devel
BuildRequires: intltool
BuildRequires: glib2-devel
BuildRequires: goocanvas2-devel
BuildRequires: desktop-file-utils
Requires: gtksourceview3
Requires: gtk3
Requires: glib2 >= 2.24
Requires: goocanvas2
Provides: oregano = %{version}-%{release}
Conflicts: oregano-master
%description
Schematic capture and simulation of electrical circuits utilizing gtk3
as front-end and ng-spice/gnu-cap as back-end
%prep
%setup -q -n oregano
%build
./waf distclean || true
# the bare "build" target does not mangle any additional cflags into the build
CFLAGS="%{optflags}" ./waf configure --destdir="$RPM_BUILD_ROOT" --prefix="%{_prefix}" --sysconfdir="%{_sysconfdir}" build
%install
./waf install --destdir="$RPM_BUILD_ROOT" --prefix="%{_prefix}" --sysconfdir="%{_sysconfdir}"
rm -f "$RPM_BUILD_ROOT/%{_bindir}/microtests"
rm -rf "$RPM_BUILD_ROOT/%{_datadir}/glib-2.0/schemas/gschemas.compiled"
%find_lang oregano
%post
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/update-desktop-database &> /dev/null || :
/bin/touch --no-create %{_datadir}/mime/packages &>/dev/null || :
%postun
if [ $1 -eq 0 ] ; then
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
fi
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
/usr/bin/update-desktop-database &> /dev/null || :
%posttrans
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
%clean
rm -rf "$RPM_BUILD_ROOT"
%files -f oregano.lang
%defattr(-, root, root)
%doc HACKING.md README.md AUTHORS COPYING ARCHITECTURE.md
%doc docs/oregano-inheritance.dia
%doc docs/user-docs/Library-HOWTO.md
%doc docs/user-docs/LogView.md
%doc docs/user-docs/Oregano-Plot-HOWTO.md
%doc docs/user-docs/ProgressBar.md
%doc docs/user-docs/Simulation-Settings-HOWTO.md
%{_bindir}/*
%{_datadir}/help/*/oregano/*
%{_datadir}/applications/oregano.desktop
%{_datadir}/mime-info/*
%{_datadir}/icons/hicolor/*/*
%{_datadir}/oregano/*/*
%{_datadir}/mime/packages/oregano-mimetypes.xml
%{_datadir}/glib-2.0/schemas/io.ahoi.oregano.gschema.xml
%{_mandir}/man1/oregano.1.gz
%changelog
* Mon May 22 2017 Bernhard Schuster <[email protected]> 0.84.0-1
- Fix crash causing bugs
* Wed Jul 15 2015 Bernhard Schuster <[email protected]> 0.83.3-1
- Version bump
- Ignore distclean exit codes not equal 0
* Thu Apr 16 2015 Bernhard Schuster <[email protected]> 0.83.2-4
- Minor spec updates
* Thu Dec 25 2014 Bernhard Schuster <[email protected]> 0.83.2-1
- Bump version to 0.83.2
* Sun Dec 07 2014 Bernhard Schuster <[email protected]> 0.83.1-3
- Initial RPM release with changelog