forked from NatronGitHub/Natron
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Natron.spec
93 lines (78 loc) · 2.76 KB
/
Natron.spec
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
Summary: Open source compositing software
Name: Natron
# The two actively maintained versions (that are merged into master)
Version21: 2.1.10
Version22: 2.2.10
Version23: 2.3.16
Version24: 2.4.0
Version30: 3.0.0
# The version for this branch of the sources
Version: %{version30}
# The release number (must be incremented whenever changes to this file generate different binaries)
Release: 1%{?dist}
License: GPLv2
Group: System Environment/Base
URL: http://natrongithub.github.io
# https://github.com/NatronGitHub/Natron/releases/download/%{version}/Natron-%{version}.tar.xz
Source0: %{name}-%{version}.tar.xz
# https://github.com/NatronGitHub/Natron/releases/download/2.1.0/Natron-OpenColorIO-Configs-2.1.0.tar.xz
Source1: %{name}-OpenColorIO-Configs-2.1.0.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: fontconfig-devel gcc-c++ expat-devel python-pyside-devel shiboken-devel qt-devel boost-devel pixman-devel glfw-devel cairo-devel
Requires: fontconfig qt-x11 python-pyside shiboken-libs boost-serialization pixman glfw cairo
%description
Open source compositing software. Node-graph based. Similar in functionalities to Adobe After Effects and Nuke by The Foundry.
%prep
%setup
%setup -T -D -a 1
%build
mv Natron-OpenColorIO-Configs-2.1.0 OpenColorIO-Configs
cat << 'EOF' > config.pri
boost-serialization-lib: LIBS += -lboost_serialization
boost: LIBS += -lboost_thread -lboost_system
PKGCONFIG += expat
PKGCONFIG += fontconfig
cairo {
PKGCONFIG += cairo
LIBS -= $$system(pkg-config --variable=libdir cairo)/libcairo.a
}
pyside {
PKGCONFIG -= pyside
INCLUDEPATH += $$system(pkg-config --variable=includedir pyside)
INCLUDEPATH += $$system(pkg-config --variable=includedir pyside)/QtCore
INCLUDEPATH += $$system(pkg-config --variable=includedir pyside)/QtGui
INCLUDEPATH += $$system(pkg-config --variable=includedir QtGui)
LIBS += -lpyside-python2.7
}
shiboken {
PKGCONFIG -= shiboken
INCLUDEPATH += $$system(pkg-config --variable=includedir shiboken)
LIBS += -lshiboken-python2.7
}
EOF
mkdir build
cd build
qmake-qt4 -r ../Project.pro PREFIX=/usr CONFIG+=release DEFINES+=QT_NO_DEBUG_OUTPUT
make %{?_smp_mflags}
%install
cd build
make INSTALL_ROOT=%{buildroot} install
%clean
%{__rm} -rf %{buildroot}
%post
update-mime-database /usr/share/mime
update-desktop-database /usr/share/applications
%postun
update-mime-database /usr/share/mime
update-desktop-database /usr/share/applications
%files
%defattr(-,root,root,-)
/usr/bin/Natron
/usr/bin/NatronRenderer
/usr/share/applications/Natron.desktop
/usr/share/pixmaps/natronIcon256_linux.png
/usr/share/pixmaps/natronProjectIcon_linux.png
/usr/share/mime/packages/x-natron.xml
/usr/share/OpenColorIO-Configs
%doc LICENSE.txt
%changelog