]> git.tdb.fi Git - ext/subsurface.git/blob - packaging/windows/mingw-subsurface.spec
Import: always open and read the file before checking the filename extension
[ext/subsurface.git] / packaging / windows / mingw-subsurface.spec
1 %define __strip %{_mingw32_strip}
2 %define __objdump %{_mingw32_objdump}
3 %define _use_internal_dependency_generator 0
4 %define __find_requires %{_mingw32_findrequires}
5 %define __find_provides %{_mingw32_findprovides}
6 %define __os_install_post %{_mingw32_debug_install_post} \
7                           %{_mingw32_install_post}
8
9
10 Name:           mingw32-subsurface
11 Summary:        Simple Dive Log Program
12 Version:        1.1
13 Release:        5
14 License:        GPLv2
15 URL:            http://subsurface.hohndel.org
16 Source0:        subsurface-1.1.tar.gz
17 BuildArch:      noarch
18 BuildRequires:  mingw32-cross-pkg-config mingw32-cross-gcc
19 BuildRequires:  mingw32-gtk2-devel mingw32-glib2-devel mingw32-libxml2-devel
20 BuildRequires:  mingw32-libdivecomputer0-devel mingw32-gconf2-devel
21 BuildRequires:  mingw32-pthreads-devel
22 BuildRequires:  mingw32-gtk2 mingw32-glib2 mingw32-libxml2
23 BuildRequires:  mingw32-libdivecomputer0 mingw32-gconf2
24 BuildRequires:  mingw32-pthreads mingw32-zlib
25
26 Group:          Productivity/Other
27
28 %description
29 subsurface is a simple dive log program written in C
30
31 %{_mingw32_debug_package}
32
33 %prep
34 %setup -q -n subsurface-1.1
35
36 %build
37 make CC=%{_mingw32_target}-gcc PKGCONFIG=%{_mingw32_target}-pkg-config XML2CONFIG=%{_mingw32_bindir}/xml2-config NAME=subsurface.exe
38
39 %clean
40 #rm -rf %{buildroot}
41
42 %install
43 mkdir -p $RPM_BUILD_ROOT/%{_mingw32_bindir}
44 mkdir -p $RPM_BUILD_ROOT/%{_mingw32_datadir}
45 install -m 755 subsurface.exe $RPM_BUILD_ROOT/%{_mingw32_bindir}/subsurface.exe
46 install -m 644 subsurface.svg $RPM_BUILD_ROOT/%{_mingw32_datadir}/subsurface.svg
47 # this seems like a really ugly hack
48 install -m 755 %{_mingw32_bindir}/libdivecomputer-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libdivecomputer-0.dll
49 install -m 755 %{_mingw32_bindir}/libcairo-2.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libcairo-2.dll
50 install -m 755 %{_mingw32_bindir}/libgconf-2-4.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libgconf-2-4.dll
51 install -m 755 %{_mingw32_bindir}/libgdk-win32-2.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libgdk-win32-2.0-0.dll
52 install -m 755 %{_mingw32_bindir}/libglib-2.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libglib-2.0-0.dll
53 install -m 755 %{_mingw32_bindir}/libgtk-win32-2.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libgtk-win32-2.0-0.dll
54 install -m 755 %{_mingw32_bindir}/libpango-1.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libpango-1.0-0.dll
55 install -m 755 %{_mingw32_bindir}/libpangocairo-1.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libpangocairo-1.0-0.dll
56 install -m 755 %{_mingw32_bindir}/pthreadGC2.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/pthreadGC2.dll
57 install -m 755 %{_mingw32_bindir}/libxml2-2.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libxml2-2.dll
58 install -m 755 %{_mingw32_bindir}/libfontconfig-1.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libfontconfig-1.dll
59 install -m 755 %{_mingw32_bindir}/libfreetype-6.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libfreetype-6.dll
60 install -m 755 %{_mingw32_bindir}/libpixman-1-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libpixman-1-0.dll
61 install -m 755 %{_mingw32_bindir}/libpng15-15.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libpng15-15.dll
62 install -m 755 %{_mingw32_bindir}/zlib1.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/zlib1.dll
63 install -m 755 %{_mingw32_bindir}/libintl-8.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libintl-8.dll
64 install -m 755 %{_mingw32_bindir}/libgmodule-2.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libgmodule-2.0-0.dll
65 install -m 755 %{_mingw32_bindir}/libgdk_pixbuf-2.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libgdk_pixbuf-2.0-0.dll
66 install -m 755 %{_mingw32_bindir}/libgobject-2.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libgobject-2.0-0.dll
67 install -m 755 %{_mingw32_bindir}/libgio-2.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libgio-2.0-0.dll
68 install -m 755 %{_mingw32_bindir}/libjasper-1.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libjasper-1.dll
69 install -m 755 %{_mingw32_bindir}/libgthread-2.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libgthread-2.0-0.dll
70 install -m 755 %{_mingw32_bindir}/libffi-5.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libffi-5.dll
71 install -m 755 %{_mingw32_bindir}/libjpeg-8.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libjpeg-8.dll
72 install -m 755 %{_mingw32_bindir}/libtiff-3.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libtiff-3.dll
73 install -m 755 %{_mingw32_bindir}/libpangoft2-1.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libpangoft2-1.0-0.dll
74 install -m 755 %{_mingw32_bindir}/libpangowin32-1.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libpangowin32-1.0-0.dll
75 install -m 755 %{_mingw32_bindir}/libatk-1.0-0.dll $RPM_BUILD_ROOT/%{_mingw32_bindir}/libatk-1.0-0.dll
76
77 %files 
78 %defattr(-,root,root)
79 %{_mingw32_bindir}/subsurface.exe
80 %{_mingw32_bindir}/libdivecomputer-0.dll
81 %{_mingw32_bindir}/libcairo-2.dll
82 %{_mingw32_bindir}/libgconf-2-4.dll
83 %{_mingw32_bindir}/libgdk-win32-2.0-0.dll
84 %{_mingw32_bindir}/libglib-2.0-0.dll
85 %{_mingw32_bindir}/libgtk-win32-2.0-0.dll
86 %{_mingw32_bindir}/libpango-1.0-0.dll
87 %{_mingw32_bindir}/libpangocairo-1.0-0.dll
88 %{_mingw32_bindir}/pthreadGC2.dll
89 %{_mingw32_bindir}/libxml2-2.dll
90 %{_mingw32_bindir}/libfontconfig-1.dll
91 %{_mingw32_bindir}/libfreetype-6.dll
92 %{_mingw32_bindir}/libpixman-1-0.dll
93 %{_mingw32_bindir}/libpng15-15.dll
94 %{_mingw32_bindir}/zlib1.dll
95 %{_mingw32_bindir}/libintl-8.dll
96 %{_mingw32_bindir}/libgmodule-2.0-0.dll
97 %{_mingw32_bindir}/libgdk_pixbuf-2.0-0.dll
98 %{_mingw32_bindir}/libgobject-2.0-0.dll
99 %{_mingw32_bindir}/libgio-2.0-0.dll
100 %{_mingw32_bindir}/libjasper-1.dll
101 %{_mingw32_bindir}/libgthread-2.0-0.dll
102 %{_mingw32_bindir}/libffi-5.dll
103 %{_mingw32_bindir}/libjpeg-8.dll
104 %{_mingw32_bindir}/libtiff-3.dll
105 %{_mingw32_bindir}/libpangoft2-1.0-0.dll
106 %{_mingw32_bindir}/libpangowin32-1.0-0.dll
107 %{_mingw32_bindir}/libatk-1.0-0.dll
108
109 %{_mingw32_datadir}/subsurface.svg
110
111
112 %changelog