]>
Commit | Line | Data |
---|---|---|
185fde1e JR |
1 | |
2 | %bcond_with snap # include shapshot information in version, | |
8375ff4a | 3 | # should be used only in official Th snapshots |
185fde1e | 4 | |
7ebf05ae | 5 | %define snapshot 2019 |
185fde1e JR |
6 | |
7 | # CPE_NAME = cpe:/ {part} : {vendor} : {product} : {version} : {update} : {edition} : {language} | |
8 | # http://cpe.mitre.org/specification/ | |
9 | # http://csrc.nist.gov/publications/nistir/ir7695/NISTIR-7695-CPE-Naming.pdf | |
10 | ||
11 | %if %{with snap} | |
12 | %define distname Th/%{snapshot} | |
13 | %define cpename cpe:/o:pld-linux:pld:%{distversion}:%{snapshot} | |
14 | %else | |
15 | %define distname Th | |
16 | %define cpename cpe:/o:pld-linux:pld:%{distversion} | |
17 | %endif | |
18 | %define distversion 3.0 | |
63c84369 | 19 | %define distrelease "PLD Linux (%{distname}) release %{distversion}" |
185fde1e | 20 | |
dbafa7c0 | 21 | %define rel 12 |
185fde1e JR |
22 | Summary: PLD Linux release file |
23 | Summary(cs.UTF-8): Soubor s číslem verze systému PLD Linux | |
24 | Summary(da.UTF-8): PLD Linux release fil | |
25 | Summary(de.UTF-8): PLD Linux Release-Datei | |
26 | Summary(es.UTF-8): El fichero con la versión de PLD Linux | |
27 | Summary(fr.UTF-8): Fichier de version de PLD Linux | |
28 | Summary(id.UTF-8): File rilis PLD Linux | |
29 | Summary(is.UTF-8): Útgáfuskráin fyrir PLD Linux | |
30 | Summary(it.UTF-8): File della release di PLD Linux | |
31 | Summary(ja.UTF-8): PLD Linux リリースファイル | |
32 | Summary(ko.UTF-8): PLD Linux 배포 파일 | |
33 | Summary(nb.UTF-8): PLD Linux release fil | |
34 | Summary(pl.UTF-8): Wersja Linuksa PLD | |
35 | Summary(pt.UTF-8): O ficheiro de versão final do PLD Linux | |
36 | Summary(ru.UTF-8): Файл релиза PLD Linux | |
37 | Summary(sk.UTF-8): Súbor označujúci verziu PLD Linux | |
38 | Summary(sl.UTF-8): Datoteka s podatki o izdaji PLD Linuxa | |
39 | Summary(sv.UTF-8): PLD Linux versionsfil | |
40 | Summary(tr.UTF-8): PLD Linux sürüm dosyası | |
41 | Summary(zh_CN.UTF-8): PLD Linux 版本文件。 | |
42 | Name: pld-release | |
43 | Version: %{distversion} | |
c7977f69 | 44 | Release: %{rel}%{?with_snap:.%{snapshot}} |
185fde1e JR |
45 | License: GPL |
46 | Group: Base | |
d7ca7bd4 | 47 | Provides: system-release(releasever) = %{distversion} |
bba2d7fc | 48 | Conflicts: issue < 3.0-1 |
185fde1e JR |
49 | BuildArch: noarch |
50 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
51 | ||
52 | %description | |
53 | PLD Linux release file. | |
54 | ||
55 | %description -l cs.UTF-8 | |
56 | Soubor s číslem verze systému PLD Linux. | |
57 | ||
58 | %description -l da.UTF-8 | |
59 | PLD Linux release fil. | |
60 | ||
61 | %description -l de.UTF-8 | |
62 | PLD Linux Release-Datei. | |
63 | ||
64 | %description -l es.UTF-8 | |
65 | El fichero con la versión de PLD Linux. | |
66 | ||
67 | %description -l fr.UTF-8 | |
68 | Fichier de version de PLD Linux. | |
69 | ||
70 | %description -l id.UTF-8 | |
71 | File rilis PLD Linux. | |
72 | ||
73 | %description -l is.UTF-8 | |
74 | Útgáfuskráin fyrir PLD Linux. | |
75 | ||
76 | %description -l it.UTF-8 | |
77 | File della release di PLD Linux. | |
78 | ||
79 | %description -l ja.UTF-8 | |
80 | PLD Linux リリースファイル | |
81 | ||
82 | %description -l ko.UTF-8 | |
83 | PLD Linux 배포 파일. | |
84 | ||
85 | %description -l nb.UTF-8 | |
86 | PLD Linux release fil. | |
87 | ||
88 | %description -l pl.UTF-8 | |
89 | Wersja Linuksa PLD. | |
90 | ||
91 | %description -l pt.UTF-8 | |
92 | O ficheiro de versão final do PLD Linux. | |
93 | ||
94 | %description -l ru.UTF-8 | |
95 | Файл релиза PLD Linux. | |
96 | ||
97 | %description -l sk.UTF-8 | |
98 | Súbor označujúci verziu PLD Linux. | |
99 | ||
100 | %description -l sl.UTF-8 | |
101 | Datoteka s podatki o izdaji PLD Linuxa. | |
102 | ||
103 | %description -l sv.UTF-8 | |
104 | PLD Linux versionsfil. | |
105 | ||
106 | %description -l tr.UTF-8 | |
107 | PLD Linux sürüm dosyası. | |
108 | ||
109 | %description -l zh_CN.UTF-8 | |
110 | PLD Linux 版本文件。 | |
111 | ||
112 | %prep | |
113 | ||
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | install -d $RPM_BUILD_ROOT%{_sysconfdir} | |
117 | ||
118 | echo %{distrelease} > $RPM_BUILD_ROOT%{_sysconfdir}/pld-release | |
7a6cd5ad | 119 | ln -sf pld-release $RPM_BUILD_ROOT%{_sysconfdir}/system-release |
185fde1e JR |
120 | |
121 | cat >$RPM_BUILD_ROOT%{_sysconfdir}/os-release <<EOF | |
122 | NAME="PLD Linux" | |
123 | VERSION="%{distversion} (%{distname})" | |
124 | ID="pld" | |
125 | VERSION_ID="%{distversion}" | |
126 | PRETTY_NAME="PLD Linux %{distversion} (%{distname})" | |
127 | ANSI_COLOR="0;32" | |
128 | CPE_NAME="%{cpename}" | |
50cf5e68 | 129 | HOME_URL="https://www.pld-linux.org/" |
185fde1e JR |
130 | BUG_REPORT_URL="http://bugs.pld-linux.org/" |
131 | EOF | |
132 | ||
133 | %clean | |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
136 | %files | |
137 | %defattr(644,root,root,755) | |
138 | %{_sysconfdir}/os-release | |
139 | %{_sysconfdir}/pld-release | |
7a6cd5ad | 140 | %{_sysconfdir}/system-release |