Package ring-project: Specfile
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 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 | %define IF_ver_gt() %if "%(rpmvercmp '%1' '%2')" > "0" %define IF_ver_gteq() %if "%(rpmvercmp '%1' '%2')" >= "0" %define IF_ver_lt() %if "%(rpmvercmp '%2' '%1')" > "0" %define IF_ver_lteq() %if "%(rpmvercmp '%2' '%1')" >= "0" %define IF_ver_eq() %if "%(rpmvercmp '%1' '%2')" == "0" %define IF_ver_not_gt() %if "%(rpmvercmp '%1' '%2')" <= "0" %define IF_ver_not_gteq() %if "%(rpmvercmp '%1' '%2')" < "0" %define IF_ver_not_lt() %if "%(rpmvercmp '%2' '%1')" <= "0" %define IF_ver_not_lteq() %if "%(rpmvercmp '%2' '%1')" < "0" %define IF_ver_not_eq() %if "%(rpmvercmp '%1' '%2')" != "0" %{expand: %(sed 's,^%%,%%global ,' /usr/lib/rpm/macros.d/ubt)} %define ubt_id %__ubt_branch_id %ifarch %ix86 %set_verify_elf_method textrel=relaxed %endif %ifarch %arm %set_verify_elf_method textrel=relaxed %endif %define rname ring-project %define _cmake__builddir BUILD %define _libexecdir %prefix/libexec %define builddir %_builddir/%name-%version %define ring_sover 0 %define libring libring%ring_sover %define ringclient_sover 1.0.0 %define libringclient libringclient%ringclient_sover Name: ring-project Version: 20211223 Release: alt2 Group: Networking/Instant messaging Summary: SIP and IAX2 compatible softphone Url: https://jami.net/ License: GPLv3 ExcludeArch: %not_qt5_qtwebengine_arches Requires(post,preun): alternatives >= 0.2 #Conflicts: sflphone sflphone-common #Requires: %name-common >= %EVR Source: %name-%version.tar Patch3: alt-armh.patch Patch4: alt-ppc.patch Patch5: alt-qt-build.patch Patch6: alt-link.patch BuildRequires(pre): rpm-build-ubt %IF_ver_gteq %ubt_id M90 BuildRequires: asio-devel %endif BuildRequires(pre): rpm-macros-qt5-webengine BuildRequires: cmake gcc-c++ glibc-devel autoconf-archive BuildRequires: doxygen graphviz gtk-doc BuildRequires: qt5-tools-devel BuildRequires: qt5-declarative-devel qt5-multimedia-devel qt5-svg-devel qt5-webengine-devel qt5-quickcontrols2-devel BuildRequires: chrpath desktop-file-utils BuildRequires: libalsa-devel libdbus-c++-devel libgnutls-devel libgsm-devel BuildRequires: libavutil-devel libavcodec-devel libavformat-devel libavdevice-devel libavfilter-devel libswscale-devel libswresample-devel BuildRequires: libssl-devel libgpg-error-devel libgcrypt-devel #BuildRequires: libssl-devel-static BuildRequires: libnettle-devel libpcre-devel libpulseaudio-devel libsamplerate-devel libsndfile-devel libvpx-devel BuildRequires: libspeexdsp-devel libswscale-devel libudev-devel libupnp-devel libuuid-devel jsoncpp-devel BuildRequires: zlib-devel libopus-devel libspeex-devel libilbc-devel libmsgpack-devel libx264-devel libx265-devel libva-devel libvdpau-devel BuildRequires: libyaml-cpp-devel yasm perl-Pod-Usage cppunit-devel libgmp-devel libexpat-devel BuildRequires: evolution-data-server-devel libclutter-gtk3-devel libnotify-devel libpixman-devel BuildRequires: libXdmcp-devel libpng-devel libXxf86vm-devel libappindicator-gtk3-devel libwebkit2gtk-devel libqrencode-devel BuildRequires: libcanberra-gtk3-devel %description Ring is a Voice-over-IP software phone. We want it to be: - user friendly (fast, sleek, easy to learn interface) - professional grade (transfers, holds, optimal audio quality) - fully compatible with Asterisk (SIP and IAX protocols) - de-centralized call (P2P-DHT) - customizable As the SIP/audio daemon and the user interface are separate processes, it is easy to provide different user interfaces. Ring comes with various graphical user interfaces and even scripts to control the daemon from the shell. %package -n ring-daemon Group: System/Servers Summary: SIP and IAX2 compatible softphone daemon %description -n ring-daemon As the SIP/audio daemon and the user interface are separate processes, it is easy to provide different user interfaces. Ring comes with various graphical user interfaces and even scripts to control the daemon from the shell. %package -n ring-client-gnome Summary: Ring client written in GTK+ Group: Networking/Instant messaging Requires: ring-daemon Provides: jami-client-gnome = %EVR Provides: jami-gnome = %EVR %description -n ring-client-gnome Ring-client-gnome is a Ring client written in GTK+. It uses libRingClient to communicate with the Ring daemon and for all of the underlying models and their logic. Ideally ring-client-gnome should only contain UI related code and any wrappers necessary for interacting with libRingClient. %package -n ring-client-qt Summary: Ring client written in Qt Group: Networking/Instant messaging Requires: ring-daemon Provides: jami-client-qt = %EVR Provides: jami-qt = %EVR Obsoletes: ring-client-kde5 < 3.2 %description -n ring-client-qt Ring-client-gnome is a Ring client written in Qt. It uses libRingClient to communicate with the Ring daemon and for all of the underlying models and their logic. Ideally ring-client-qt should only contain UI related code and any wrappers necessary for interacting with libRingClient. %package common BuildArch: noarch Summary: Common %name files Group: System/Configuration/Other Conflicts: ring-daemon < 3 Provides: ring-daemon-common = 4.1 Obsoletes: ring-daemon-common < 4.1 Provides: libringclient-common = 1.1 Obsoletes: libringclient-common < 1.1 %description common Common %name files %package -n %libring Group: System/Libraries Summary: %name library Requires: %name-common >= %EVR %description -n %libring %name library. %package -n %libringclient Group: System/Libraries Summary: Ring client library Requires: %name-common >= %EVR %description -n %libringclient Client library for GNU Ring. %package devel Group: Development/Other Summary: Development files for %name Provides: ring-daemon-devel = %version-%release Provides: libringclient-devel = %version-%release %description devel The %name-devel package contains libraries and header files for developing applications that use %name. %package devel-static Group: Development/Other Summary: Development files for %name Requires: %name-devel Provides: ring-daemon-devel-static = %version-%release %description devel-static The %name-devel package contains static libraries for developing applications that use %name. %prep %setup -qn %name-%version %patch3 -p1 %patch4 -p1 #%patch5 -p1 %patch6 -p1 # don't build internal vpx rm -rf daemon/contrib/src/vpx rm -rf daemon/contrib/tarballs/libvpx*.tar.gz sed -i '/DEPS_ffmpeg/s/vpx//' daemon/contrib/src/ffmpeg/rules.mak %build %add_optflags %optflags_shared -Wno-error=return-type export CXXFLAGS="%optflags" mkdir -p daemon/contrib/native pushd daemon/contrib/native ../bootstrap \ --no-checksums \ --disable-downloads \ --disable-ogg \ --disable-flac \ --disable-vorbis \ --disable-vorbisenc \ --disable-speex \ --disable-sndfile \ --disable-speexdsp \ --disable-gsm \ --disable-natpmp \ # make list make popd pushd daemon ./autogen.sh %configure \ --with-libilbc \ --with-opus \ --enable-video \ --enable-ipv6 \ --without-jack \ CFLAGS="%optflags" \ LDFLAGS="-Wl,-z,defs" \ # %make_build popd pushd lrc %cmake \ -DRING_BUILD_DIR=%builddir/daemon/src \ -DENABLE_VIDEO=ON \ -DCMAKE_BUILD_TYPE=Release \ # [ -e build ] || ln -s BUILD build pushd BUILD %make_build popd popd pushd client-gnome %cmake \ -DLibRingClient_PROJECT_DIR=%builddir/lrc \ -DGSETTINGS_LOCALCOMPILE=OFF \ # pushd BUILD %make_build popd popd pushd client-qt %cmake \ -DLRC=%builddir/lrc \ # pushd BUILD %make_build popd lrelease-qt5 translations/*.ts popd %install %makeinstall -C daemon make install -C lrc/BUILD DESTDIR=%buildroot make install -C client-gnome/BUILD DESTDIR=%buildroot make install -C client-qt/BUILD DESTDIR=%buildroot #install -m 0755 client-qt/jami-qt %buildroot/%_bindir/ cp -ar %buildroot/%_desktopdir/jami-gnome.desktop %buildroot/%_desktopdir/jami-qt.desktop desktop-file-install \ --vendor="" \ --set-key=Exec \ --set-value="jami-qt %%u" \ --add-category="KDE" \ --add-category="Qt" \ --remove-category="GNOME" \ --remove-category="GTK" \ --dir %buildroot/%_desktopdir %buildroot/%_desktopdir/jami-qt.desktop mkdir -p %buildroot/%_datadir/ring/translations/ install -m 0644 client-qt/translations/*.qm %buildroot/%_datadir/ring/translations/ # find translations echo "%%defattr(644,root,root,755)" >jami-client-qt.lang find %buildroot/%_datadir/ring/translations/ -type f -name \*.qm | \ while read t do lang_file=`basename $t` lang_name=`echo "$lang_file" | sed -e 's|\.qm$||' -e 's|.*windows_||'` if echo $lang_name | grep -q ^en then echo "%%_datadir/ring/translations/$lang_file" >>jami-client-qt.lang else echo "%%lang($lang_name) %%_datadir/ring/translations/$lang_file" >>jami-client-qt.lang fi done #chrpath --delete %buildroot/%_libexecdir/jamid # install alternatives mkdir -p %buildroot/%_bindir/ rm -rf %buildroot/%_bindir/jami ln -s /bin/true %buildroot/%_bindir/jami ln -s jami %buildroot/%_bindir/ring ln -s jami %buildroot/%_bindir/ring.cx # echo >%buildroot/%_bindir/jami-client-dummy <<__EOF__ #!/bin/sh echo "Jami not found" >&2 exit 1 __EOF__ chmod 0755 %buildroot/%_bindir/jami-client-dummy # install -d %buildroot/%_sysconfdir/alternatives/packages.d cat > %buildroot/%_sysconfdir/alternatives/packages.d/%name <<__EOF__ %_bindir/jami %_bindir/jami-client-dummy 1 __EOF__ cat > %buildroot/%_sysconfdir/alternatives/packages.d/jami-client-gnome <<__EOF__ %_bindir/jami %_bindir/jami-gnome 10 __EOF__ cat > %buildroot/%_sysconfdir/alternatives/packages.d/jami-client-qt <<__EOF__ %_bindir/jami %_bindir/jami-qt 9 __EOF__ %if "%_lib" == "lib64" sed -i 's|/usr/lib|/usr/lib64|' %buildroot/usr/lib/cmake/LibRingClient/LibRingClientConfig.cmake mkdir -p %buildroot/%_libdir mv %buildroot/usr/lib/* %buildroot/%_libdir/ %endif %find_lang lrc --with-qt %find_lang jami-client-gnome %files common %_iconsdir/hicolor/*/apps/jami*.* %files -n ring-daemon %doc daemon/AUTHORS daemon/COPYING daemon/README %config %_sysconfdir/alternatives/packages.d/%name %ghost %_bindir/jami %_bindir/ring %_bindir/ring.cx %_bindir/jami-client-dummy %_libexecdir/jamid %_datadir/dbus-1/services/cx.ring.* %dir %_datadir/ring/ %_datadir/jami/ %_man1dir/jamid.* %files -n ring-client-gnome -f jami-client-gnome.lang %config %_sysconfdir/alternatives/packages.d/jami-client-gnome %_bindir/jami-gnome %_datadir/jami-gnome/ %_desktopdir/jami-gnome.desktop %_datadir/sounds/jami-gnome/ %_datadir/glib-2.0/schemas/net.jami.*.gschema.xml %_datadir/metainfo/jami-gnome.appdata.xml %files -n ring-client-qt -f jami-client-qt.lang %dir %_datadir/ring/translations/ %config %_sysconfdir/alternatives/packages.d/jami-client-qt %_bindir/jami-qt %_datadir/jami-qt/ %_desktopdir/jami-qt.desktop %files -n %libring %doc daemon/AUTHORS daemon/COPYING daemon/README %_libdir/libring.so.%ring_sover %_libdir/libring.so.* %files -n %libringclient -f lrc.lang %doc lrc/COPYING %_libdir/libringclient.so.%ringclient_sover %_libdir/libringclient.so.* %files devel %_libdir/lib*.so %_includedir/jami/ %_includedir/libringclient/ %_datadir/dbus-1/interfaces/cx.ring.Ring.*.xml %_libdir/cmake/LibRingClient/ %files devel-static #%_libdir/libring.a %changelog * Thu Mar 17 2022 Sergey V Turchin <zerg@altlinux.org> 20211223-alt2 - merge p10 changes * Tue Mar 15 2022 Sergey V Turchin <zerg@altlinux.org> 20201118-alt4 - build with parity of qtwebengine arches * Thu Mar 03 2022 Sergey V Turchin <zerg@altlinux.org> 20211223-alt1 - new version * Fri Feb 18 2022 Sergey V Turchin <zerg@altlinux.org> 20210917-alt3 - using not_qt5_qtwebengine_arches macro * Mon Jan 31 2022 Sergey V Turchin <zerg@altlinux.org> 20210917-alt2 - build with parity of qtwebengine arches * Mon Dec 06 2021 Igor Vlasenko <viy@altlinux.org> 20210917-alt1.1 - NMU: rebuild with libilbc instead of ilbc * Thu Sep 23 2021 Sergey V Turchin <zerg@altlinux.org> 20210917-alt1 - new version * Mon May 31 2021 Sergey V Turchin <zerg@altlinux.org> 20201118-alt3 - fix to build with new cmake * Wed Nov 25 2020 Sergey V Turchin <zerg@altlinux.org> 20201118-alt2 - obsolete ring-client-kde5 * Fri Nov 20 2020 Sergey V Turchin <zerg@altlinux.org> 20201118-alt1 - new version * Wed Sep 16 2020 Sergey Bolshakov <sbolshakov@altlinux.ru> 20190814-alt2 - rebuilt with libupnp-1.14 * Fri Aug 16 2019 Sergey V Turchin <zerg@altlinux.org> 20190814-alt1 - new version * Mon Jun 24 2019 Sergey V Turchin <zerg@altlinux.org> 20190622-alt1 - new version * Mon Feb 18 2019 Sergey V Turchin <zerg@altlinux.org> 20190215-alt1 - new version * Fri Feb 15 2019 Sergey V Turchin <zerg@altlinux.org> 20190214-alt1 - new version * Tue Feb 12 2019 Sergey V Turchin <zerg@altlinux.org> 20190129-alt1 - new version * Tue Feb 12 2019 Sergey V Turchin <zerg@altlinux.org> 20180826-alt4 - disable return-type error * Mon Nov 26 2018 Sergey V Turchin <zerg@altlinux.org> 20180826-alt3 - fix to build on armh (thanks sbolshakov@alt) * Fri Nov 23 2018 Sergey V Turchin <zerg@altlinux.org> 20180826-alt2 - fix requires (ALT#33594) * Thu Aug 30 2018 Sergey V Turchin <zerg@altlinux.org> 20180826-alt1 - new version * Thu Jul 19 2018 Sergey V Turchin <zerg@altlinux.org> 20180712-alt1.1 - fix build requires * Tue Jul 17 2018 Sergey V Turchin <zerg@altlinux.org> 20180712-alt1 - using all-in-one tarball * Mon Jul 09 2018 Sergey Bolshakov <sbolshakov@altlinux.ru> 4.0.0-alt3 - fix build on arm * Thu Jul 05 2018 Sergey V Turchin <zerg@altlinux.org> 4.0.0-alt2 - fix to build with new ffmpeg * Tue Jul 25 2017 Sergey V Turchin <zerg@altlinux.org> 4.0.0-alt1 - new version - add dummy client alternative * Wed Feb 22 2017 Sergey V Turchin <zerg@altlinux.org> 3.0.0-alt0.1 - new beta * Thu May 12 2016 Sergey V Turchin <zerg@altlinux.org> 2.3.0-alt0.3 - fix build requires * Thu May 12 2016 Sergey V Turchin <zerg@altlinux.org> 2.3.0-alt0.2 - update from master branch * Tue Mar 15 2016 Sergey V Turchin <zerg@altlinux.org> 2.3.0-alt0.1 - initial build |