-
Notifications
You must be signed in to change notification settings - Fork 1
/
macros.compat-srpm
70 lines (67 loc) · 2.33 KB
/
macros.compat-srpm
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
# Tolerance
%debug_package %{nil}
%__arch_install_post %{nil}
%__os_install_post %{nil}
%__spec_install_post %{nil}
%__brp_mangle_shebangs %{nil}
%_default_patch_fuzz 2
%_disable_ld_as_needed 1
%_disable_ld_no_undefined 1
%_unpackaged_files_terminate_build 0
%_python_bytecompile_errors_terminate_build 0
%_missing_build_ids_terminate_build 0
%_binaries_in_noarch_packages_terminate_build 0
%_hardened_build %{nil}
%_auto_set_build_flags %{nil}
# Directory
%tmpdir %{_tmppath}
%python_sitelibdir %python_sitelib
%py_puresitedir %python_sitelib
%py_platsitedir %python_sitearch
%_appdefdif /usr/share/X11/app-defaults
%_pixmapsdir /usr/share/pixmaps
%_kde4_iconsdir /usr/share/icons
%_iconsdir /usr/share/icons
%_miconsdir /usr/share/icons/hicolor/16x16/apps
%_liconsdir /usr/share/icons/hicolor/64x64/apps
%_man1dir /usr/share/man/man1
%_man5dir /usr/share/man/man5
%_man6dir /usr/share/man/man6
%_man8dir /usr/share/man/man8
%_desktopdir /usr/share/applications
%_gamesbindir /usr/bin
%_gamesdatadir /usr/share
%_x11sysconfdir /etc/X11
%_x11modulesdir %{_libdir}/xorg/modules
%_x11x11dir /usr/share
%_x11bindir /usr/bin
%_x11dir /usr
# Command
%__autoreconf autoreconf
%autoreconf autoreconf
%configure2_5x %{configure}
%make make
%makeinstall_std %{make_install}
%_install_info install-info
%install_info install-info
%fdupes fdupes
%apply_patches %autopatch
%python_build python setup.py build
%python_install python setup.py install --skip-build --root=%{buildroot} --prefix=%{_prefix}
%glib2_gsettings_schema_post %{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas
%glib2_gsettings_schema_postun %{_bindir}/glib-compile-schemas %{_datadir}/glib-2.0/schemas
%setup_compile_flags export CFLAGS=%{optflags} CXXFLAGS=%{optflags}
# Variable
%__global_cflags %__global_cflags -fpermissive -fPIC -DPIC -Wno-error -fno-tree-loop-distribute-patterns
%__global_cxxflags %__global_cxxflags -std=gnu++98
%__global_ldflags -Wl,-z,relro -lm -ldl -Wl,--allow-multiple-definition
%_warning_options -fpermissive -Wno-error -Wl,--allow-multiple-definition
%mkrel %{nil}
%mklibname %{nil}
%ext_man .gz
%rpmcflags %{optflags}
%rpmldflags -s
%date %(date)
%ldflags $RPM_LD_FLAGS
%_smp_mflags -j1
%_cmake_shared_libs -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE=release -DCMAKE_C_FLAGS_RELEASE="%{optflags} -fPIC -fpermissive" -DCMAKE_CXX_FLAGS_RELEASE="%{optflags} -fPIC -fpermissive"