├── .gitignore
├── .gitmodules
├── README.md
├── repos
├── cibuild.py
├── mail.html
├── pullandbuild.sh
└── rebuildtool.sh
└── rpms
├── JetBrains
├── clion.spec
├── goland.spec
├── idea.spec
├── phpstorm.spec
├── pycharm-community.spec
├── pycharm-professional.spec
├── rubymine.spec
└── webstorm.spec
├── aegisub
└── aegisub.spec
├── antigen
└── antigen.spec
├── apt
└── apt.spec
├── atom
├── apm.js
├── apm.spec
├── atom.js
├── atom.spec
├── electron-3.patch
├── fix-atom-sh.patch
├── fix-license-path.patch
├── fix-restart.patch
├── no-scripts.patch
├── symbols-view-use-system-ctags.patch
├── use-system-apm.patch
├── use-system-electron.patch
└── use-system-npm.patch
├── baka-mplayer
└── baka-mplayer.spec
├── balena-etcher
├── balena-etcher-electron.desktop
├── balena-etcher-electron.sh
└── balena-etcher.spec
├── bcloud
├── 00_fix_network_error.patch
├── 01_verifycode_length.patch
├── bcloud.obsoleted
└── fix_get_bdstoken.patch
├── brackets
├── brackets-fix-config.patch
└── brackets.spec
├── caddy
├── Caddyfile.conf
├── build-script.patch
├── caddy.spec
└── systemd-unit-file.patch
├── cairo-infinality
└── cairo-infinality.obsolete
├── ccal
└── ccal.spec
├── celt
└── celt.spec
├── checkinstall
├── checkinstall-latest.patch
└── checkinstall.spec
├── compat-libgcrypt
├── curves.c
├── ecc.c
├── hobble-libgcrypt
├── libgcrypt-1.5.0-fips-cavs.patch
├── libgcrypt-1.5.0-fips-cfgrandom.patch
├── libgcrypt-1.5.0-leak.patch
├── libgcrypt-1.5.0-tests.patch
├── libgcrypt-1.5.0-use-fipscheck.patch
├── libgcrypt-1.5.1-use-poll.patch
├── libgcrypt-1.5.2-aliasing.patch
├── libgcrypt-1.5.2-mpicoder-gccopt.patch
├── libgcrypt-1.5.3-ecc-test-fix.patch
├── libgcrypt-1.5.3-pbkdf-speedup.patch
├── libgcrypt-1.5.3-whirlpool-bug.patch
├── libgcrypt.spec
└── wk@g10code.com
├── danmaQ
└── danmaQ.spec.obsolete
├── deadbeef
├── deadbeef.spec
└── desktop.patch
├── docky
├── dbus-sharp2-glib.spec
├── dbus-sharp2.spec
├── docky-startscript-path.patch
└── docky.spec
├── doubanfm-qt
└── doubanfm-qt.spec
├── electron
├── brightray-use-system-ffmpeg.patch
├── chromium-system-ffmpeg-r2.patch
├── dont-use-sysroot.patch
├── electron-prebuild-legacy.spec
├── electron-prebuild.spec
├── electron.spec
├── libchromiumcontent-dont-create-zip.patch
├── libchromiumcontent-use-system-ffmpeg.patch
├── libchromiumcontent-use-system-tools.patch
├── unbundle-libvpx_new-fix.patch
├── use-system-clang.patch
├── use-system-ffmpeg.patch
└── use-system-ninja.patch
├── elvish
└── elvish.spec
├── fcitx
├── brise.obsolete
├── fcitx-cloudpinyin.obsolete
├── fcitx-googlepinyin.obsolete
├── fcitx-qt5.obsolete
├── fcitx-rime.spec
├── fcitx-sunpinyin.obsolete
├── fcitx.obsolete
├── libgooglepinyin.obsolete
├── librime.obsolete
├── opencc-fixes-cmake.patch
├── opencc.obsolete
├── sunpinyin.obsolete
└── xinput-fcitx
├── fdk-aac
└── fdk-aac.spec
├── feeluown
└── feeluown.spec
├── ffmpeg
├── ffmpeg.dead
└── x265.dead
├── ffms2
└── ffms2.spec
├── firefox-nightly
└── firefox-nightly.spec
├── fontconfig-infinality
└── fontconfig-infinality.obsoleted
├── foxit
├── FoxitReader-excluded_files
├── FoxitReader.patch
├── FoxitReader.spec
├── qt-installer-framework-rename-fails.patch
└── qt-installer-framework.spec
├── freetype-infinality
└── freetype-infinality.obsoleted
├── freshplayerplugin
└── freshplayerplugin.spec
├── gmediarender
└── gmediarender.obsoleted
├── gn
├── fix-version.patch
└── gn.spec
├── gnome-mpv
└── gnome-mpv.spec
├── grub4dos
├── grub4dos-help-2015-02-09.chm
├── grub4dos.spec
├── patch-chinese-20150118.diff
└── unifont.hex.gz
├── grumpy
└── grumpy.spec
├── handbrake
└── handbrake.spec
├── ircd-hybrid
├── Makefile
├── fhs_comply.patch
├── ircd-hybrid-tmpfiles.conf
├── ircd-hybrid.fc
├── ircd-hybrid.if
├── ircd-hybrid.init
├── ircd-hybrid.logrotate
├── ircd-hybrid.service
├── ircd-hybrid.spec
├── ircd-hybrid.sysconfig
├── ircd-hybrid.te
├── ircd.conf
└── ircd.motd
├── isatapd
└── isatapd.spec
├── kubernetes_for_quick_deploy
├── k8s-deploy.sh
├── kubeadm.conf
├── kubernetes-accounting.conf
└── kubernetes.spec
├── kwplayer
├── 01_cairo_region.patch
├── 101_pycairo-region.patch
├── cairo-waf-use-python-config-as-shell-script.patch
├── kwplayer.obsoleted
├── pycairo-1.10.0-test-python3.patch
├── pygobject3.obsoleted
├── python-html2text.spec.obsoleted
├── python-mutagen.obsoleted
├── python3-cairo.obsoleted
├── python3-keybinder.obsoleted
└── python3-xlib.obsoleted
├── lantern
└── lantern.spec
├── lighttable
├── fix-electron-1.2.0.patch
├── fix-lt-exception.patch
├── leiningen.spec
└── lighttable.spec
├── mdk3
└── mdk3.spec
├── moonplayer
├── moonplayer.spec
├── plugin_56.py
├── plugin_funshion.py
├── plugin_iqiyi.py
└── plugin_sohu.py
├── motrix
├── motrix-1.16.11-npm-deps-fix.patch
├── motrix-launcher.sh
├── motrix.desktop
├── motrix.spec
└── motrix.xml
├── mozc
├── ibus-setup-mozc-jp.desktop
├── mozc-build-gcc.patch
├── mozc-build-ninja.patch
├── mozc-build-verbosely.patch
├── mozc-init.el
└── mozc.spec
├── mt7601u
└── dkms-mt7601u.obsolete
├── mu
├── mu.spec
└── mu_translation.patch
├── musicbox
├── musicbox.spec
└── musicbox_logo.png
├── netdata
├── netdata.conf
├── netdata.init
├── netdata.logrotate
├── netdata.spec
└── netdata.tmpfiles
├── netease-cloud-music
├── netease-cloud-music.appdata.xml
├── netease-cloud-music.spec
├── qcef.spec
└── qcef_remove_demo.patch
├── nginx
├── 404.html
├── 50x.html
├── index.html
├── modsec_lua_dump.patch
├── nginx-auto-cc-gcc.patch
├── nginx-logo.png
├── nginx-upgrade
├── nginx-upgrade.8
├── nginx.conf
├── nginx.init
├── nginx.logrotate
├── nginx.service
├── nginx.spec
├── nginx.sysconfig
└── poweredby.png
├── nitrokey-app
└── nitrokey-app.spec.obsoleted
├── nodejs-electron11-bin
├── electron11-launcher.sh
└── nodejs-electron11-bin.spec
├── nodejs-electron12-bin
├── LICENSE
├── electron12-launcher.sh
└── nodejs-electron12-bin.spec
├── nonfree-jdk
├── jdk.obsoleted
└── jdk7.obsoleted
├── nonfree-opera
├── opera-beta.obsoleted
├── opera-beta_network.obsoleted
├── opera-developer.obsoleted
├── opera-developer_network.obsoleted
├── opera-stable.obsoleted
└── opera-stable_network.obsoleted
├── nvchecker
└── nvchecker.spec
├── nvidia-kmod
├── nv-linux-arm.patch
├── nv-linux-arm2.patch
├── nvidia-kmod.spec
└── nvidia-kmodtool-excludekernel-filterfile
├── nylas
├── n1-fix-protocol.patch
├── n1-fix-renderer-path.patch
├── n1-use-system-apm.patch
└── n1.spec
├── obs-studio
└── obs-studio.spec
├── openresty
├── 404.html
├── 50x.html
├── fix_default_port.patch
├── index.html
├── modsec_lua_dump.patch
├── nginx-auto-cc-gcc.patch
├── nginx-logo.png
├── openresty-upgrade
├── openresty-upgrade.8
├── openresty.conf
├── openresty.init
├── openresty.logrotate
├── openresty.service
├── openresty.spec
├── openresty.sysconfig
└── poweredby.png
├── osdlyrics
└── osdlyrics.spec
├── pacman
├── mirrorlist
├── package-query.spec
├── pacman.spec
├── yaourt-link
└── yaourt.spec
├── pineapple-calendar
└── pineapple-calendar.spec
├── pointdownload
└── pointdownload.spec
├── python-yq
└── python3-yq.spec
├── qtav
└── qtav.spec
├── reciteword
└── reciteword.spec
├── release
└── fzug-release.spec
├── rocketchat
└── rocketchat.spec
├── sandbox
└── sandbox.spec
├── scrcpy
├── scrcpy.desktop
└── scrcpy.spec
├── screenfetch
└── screenfetch.spec
├── shadowsocks
├── libQtShadowsocks.spec
├── python-shadowsocks.spec
└── shadowsocks-qt5.spec
├── sogou
├── Makefile
├── sogou-diag_dpkg.patch
├── sogoupinyin.fc
├── sogoupinyin.if
├── sogoupinyin.spec
└── sogoupinyin.te
├── ssr
└── simplescreenrecorder.spec
├── sway
└── sway.obsolete
├── telegram
├── aseman-qt-tools.spec
├── cutegram.spec
├── libqtelegram-ae.spec
└── libtelegramqml.spec
├── tengine
├── 404.html
├── 50x.html
├── index.html
├── modsec_lua_dump.patch
├── nginx-auto-cc-gcc.patch
├── poweredby.png
├── tengine-logo.png
├── tengine-upgrade
├── tengine-upgrade.8
├── tengine.conf
├── tengine.init
├── tengine.logrotate
├── tengine.service
├── tengine.spec
└── tengine.sysconfig
├── tragtor
└── tragtor.spec
├── typora
└── typora.spec
├── unity
└── unity-editor.huge
├── unrealengine
└── ue4.huge
├── vim
└── dead.package
├── vo-aacenc
└── vo-aacenc.spec
├── vscode
├── product-release.json
└── vscode.spec
├── wechat
└── wechat.spec
├── wineqq
└── qqintl.spec
├── winetricks
└── winetricks.spec
├── wiznote
├── wiznote-beta.spec
├── wiznote.spec
└── wiznote_fix_type.patch
├── wlc
└── wlc.obsolete
├── wps
└── wps-office.spec
├── xorg-x11-drv-nvidia
├── 00-avoid-glamor.conf
├── 99-nvidia.conf
├── alternate-install-present
├── blacklist-nouveau.conf
├── nvidia-settings.desktop
├── nvidia-xorg.conf
├── nvidia.conf
└── xorg-x11-drv-nvidia.spec
├── xware-desktop
├── xware-desktop.dead
└── xware-desktop_makefile.patch
├── xx-net
├── use-home-config.path
└── xx-net.spec
├── you-get
└── you-get.spec
└── youdao-dict
├── youdao-dict-1.1.0-dbus-register-object.patch
└── youdao-dict.spec
/.gitignore:
--------------------------------------------------------------------------------
1 | build
2 | output
3 | *.log
4 |
--------------------------------------------------------------------------------
/.gitmodules:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/.gitmodules
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # FZUG Repository | Fedora 中文社区软件源
2 |
3 | - [Website 网站](http://zh.fedoracommunity.org/)
4 | - [Wiki 维基](https://github.com/FZUG/repo/wiki)
5 | - [Issue Tracker 问题追踪](https://github.com/FZUG/repo/issues)
6 | - [Code 源代码](https://github.com/FZUG/repo)
7 | - [Release monitoring 上游项目版本跟踪](https://release-monitoring.org/distro/FZUG)
8 | - [Helpful information 实用信息](https://github.com/FZUG/repo/issues?utf8=%E2%9C%93&q=is%3Aissue%20label%3A%22helpful%20info%22%20)
9 |
--------------------------------------------------------------------------------
/repos/pullandbuild.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | SPECLISTDIR="/tmp/FZUGLISTS/"
4 | releases="30"
5 |
6 | help()
7 | {
8 | echo "Help:"
9 | }
10 |
11 | if [[ $# -eq 0 ]]; then
12 | echo "Options needed!"
13 | help
14 | exit 1;
15 | fi
16 |
17 | POSITIONAL=()
18 | while [[ $# -gt 0 ]]
19 | do
20 | key="$1"
21 |
22 | case $key in
23 | -g|--gitrepo)
24 | GITREPO="$2"
25 | shift # past argument
26 | shift # past value
27 | ;;
28 | -o|--output)
29 | OUTPUT="$2"
30 | shift # past argument
31 | shift # past value
32 | ;;
33 | --push)
34 | PUSH=YES
35 | shift # past argument
36 | ;;
37 | *) # unknown option
38 | POSITIONAL+=("$1") # save it in an array for later
39 | shift # past argument
40 | ;;
41 | esac
42 | done
43 |
44 | [[ -d ${SPECLISTDIR} ]] || mkdir ${SPECLISTDIR}
45 | SPECLISTFILE="${SPECLISTDIR}$(date +%Y%m%d-%H%M%S).list"
46 |
47 | if [ ! -z ${GITREPO+x} ]; then
48 | pushd $GITREPO
49 | fi
50 | git pull --rebase
51 | git log --name-only --since="@{2 days ago}" --pretty=format: | grep "spec$" >${SPECLISTFILE}
52 |
53 | if [ ! -z ${OUTPUT+x} ]; then
54 | extraparam=" -o ${OUTPUT}"
55 | fi
56 |
57 | find . -iname result.log -exec rm -f {} \;
58 | for rel in $releases ; do
59 | echo "Build for $rel"
60 | cat ${SPECLISTFILE} | tr '\n' ' ' | xargs ./repos/cibuild.py -a x86_64 -r $rel --createrepo --mock-opts '--dnf --define "_buildhost build.zh.fedoracommunity.org"' ${extraparam} -v
61 | done
62 | find ${OUTPUT} -iname "*.log" -exec rm {} \;
63 | find ${OUTPUT} -iname "*debuginfo*" -exec rm {} \;
64 | find ${OUTPUT} -iname "*debugsource*" -exec rm {} \;
65 | for rel in $releases ; do
66 | pushd ${OUTPUT}/$rel/x86_64
67 | createrepo_c --update .
68 | popd
69 | done
70 |
71 | if [ ! -z ${GITREPO+x} ]; then
72 | popd
73 | fi
74 |
75 |
--------------------------------------------------------------------------------
/repos/rebuildtool.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | # You need the following line in /etc/sudoers
4 | # builduser ALL=NOPASSWD: /usr/bin/yum-builddep, /usr/bin/dnf
5 |
6 | function install_tools()
7 | {
8 | sudo dnf install rpm-build rpmspectool dnf-utils -y
9 | }
10 |
11 | function prepare_src()
12 | {
13 | spectool -g -R ${SPECPATH}
14 | find ${SPECDIR} -type f -not -iname "*.spec" -exec cp {} ~/rpmbuild/SOURCES/ \;
15 | }
16 |
17 | function rpm_build()
18 | {
19 | log_path=$(echo ${SPECPATH} | sed 's/\//_/g' | sed 's/ /_/g')
20 | echo "* yum-builddep for ${PKGNAME}"
21 | sudo yum-builddep -y ${SPECPATH} >/dev/null
22 | echo "* rpmbuild for ${PKGNAME}"
23 | rpmbuild -ba ${SPECPATH} &> ${TOP_DIR}/${log_path}-FAILED.log
24 | if [ $?==0 ] ; then mv ${TOP_DIR}/${log_path}-FAILED.log ${TOP_DIR}/${log_path}-PASSED.log; fi
25 | pushd ~/rpmbuild/RPMS
26 | # Comment this line if you don't want to update the repo
27 | createrepo_c --update ~/rpmbuild/RPMS
28 | popd
29 | }
30 |
31 | function traverse_build()
32 | {
33 | TOP_DIR=$1
34 | for i in `find ${TOP_DIR} -type f -iname "*.spec"` ;
35 | do
36 | SPECPATH=$i
37 | SPECNAME=$(echo ${SPECPATH} | awk -F '/' '{print $NF}')
38 | SPECDIR=$(echo ${SPECPATH} | sed 's/${SPECNAME}//g')
39 | PKGNAME=$(echo ${SPECNAME} | sed 's/.SPEC//g' | sed 's/.spec//g')
40 | if ! grep -q "${SPECPATH}" ${TOP_DIR}/list_done ; then
41 | echo "--------${PKGNAME} start--------"
42 | echo "${SPECPATH}" >> ${TOP_DIR}/list_done
43 | prepare_src
44 | rpm_build
45 | echo "--------${PKGNAME} finished--------"
46 | fi
47 | done
48 | }
49 |
50 | traverse_build $@
51 |
52 |
--------------------------------------------------------------------------------
/rpms/antigen/antigen.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | Name: antigen
3 | Version: 2.2.3
4 | Release: 1%{?dist}
5 | Summary: A plugin manager for zsh, inspired by oh-my-zsh and vundle.
6 |
7 | License: MIT
8 | URL: https://github.com/zsh-users/antigen
9 | Source0: https://github.com/zsh-users/antigen/releases/download/v%{version}/v%{version}.tar.gz
10 | BuildRequires: make
11 | Requires: zsh
12 | Requires: git
13 |
14 | %description
15 | Antigen is a small set of functions that help you easily manage your shell (zsh) plugins,
16 | called bundles. The concept is pretty much the same as bundles in a typical vim+pathogen setup.
17 | Antigen is to zsh, what Vundle is to vim.
18 |
19 | %prep
20 | %setup -q
21 |
22 | %build
23 | make build
24 |
25 | %install
26 | make PREFIX=%{buildroot}/%{_prefix} install
27 |
28 | %files
29 | %license LICENSE
30 | %{_datadir}/antigen.zsh
31 |
32 | %doc README.mkd
33 |
34 | %changelog
35 | * Fri Mar 26 2021 justforlxz - 2.2.3-1
36 | - Initial build
37 |
--------------------------------------------------------------------------------
/rpms/atom/apm.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/node
2 | 'use strict';
3 |
4 | process.env.ATOM_RESOURCE_PATH = process.env.ATOM_RESOURCE_PATH ||
5 | '/usr//atom';
6 |
7 | try {
8 | process.env.ATOM_ELECTRON_VERSION = process.env.ATOM_ELECTRON_VERSION ||
9 | require('child_process')
10 | .execSync('/bin/electron -v').toString().trim().slice(1);
11 | } catch (e) {
12 | process.env.ATOM_ELECTRON_VERSION = undefined;
13 | }
14 |
15 | process.env.npm_config_python = __dirname + "/python-interceptor.sh";
16 |
17 | require('../lib/apm-cli.js').run(process.argv.slice(2), function (error) {
18 | process.exitCode = +!!error;
19 | });
20 |
--------------------------------------------------------------------------------
/rpms/atom/atom.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/electron
2 |
3 | const name = "atom";
4 |
5 | const {app} = require("electron");
6 | const fs = require("fs");
7 | const Module = require("module");
8 | const {join} = require("path");
9 | const vm = require("vm");
10 |
11 | // Change command name.
12 | const fd = fs.openSync("/proc/self/comm", fs.constants.O_WRONLY);
13 | fs.writeSync(fd, name);
14 | fs.closeSync(fd);
15 |
16 | // Remove first command line argument (/usr/bin/electron).
17 | process.argv.splice(0, 1);
18 |
19 | // Set application paths.
20 | const appPath = __dirname;
21 | const packageJson = require(join(appPath, "package.json"));
22 | const productName = packageJson.productName;
23 | app.setAppPath(appPath);
24 | app.setDesktopName(name + ".desktop");
25 | app.setName(productName);
26 | app.setPath("userCache", join(app.getPath("cache"), productName));
27 | app.setPath("userData", join(app.getPath("appData"), productName));
28 | app.setVersion(packageJson.version);
29 |
30 | // Run the application.
31 | const startupJs = fs.readFileSync(join(appPath, "startup.js"), "utf-8");
32 | vm.runInThisContext(startupJs);
33 | Module._load(appPath, Module, true);
34 |
--------------------------------------------------------------------------------
/rpms/atom/electron-3.patch:
--------------------------------------------------------------------------------
1 | --- a/src/text-editor-component.js
2 | +++ b/src/text-editor-component.js
3 | @@ -4433,7 +4433,7 @@
4 |
5 | if (element) {
6 | element.className = className || ''
7 | - element.styleMap.forEach((value, key) => {
8 | + element.attributeStyleMap.forEach((value, key) => {
9 | if (!style || style[key] == null) element.style[key] = ''
10 | })
11 | if (style) Object.assign(element.style, style)
12 |
--------------------------------------------------------------------------------
/rpms/atom/fix-license-path.patch:
--------------------------------------------------------------------------------
1 | --- a/src/main-process/atom-application.js
2 | +++ b/src/main-process/atom-application.js
3 | @@ -416,7 +416,7 @@
4 | this.openPathOnEvent('application:open-your-keymap', 'atom://.atom/keymap')
5 | this.openPathOnEvent('application:open-your-snippets', 'atom://.atom/snippets')
6 | this.openPathOnEvent('application:open-your-stylesheet', 'atom://.atom/stylesheet')
7 | - this.openPathOnEvent('application:open-license', path.join(process.resourcesPath, 'LICENSE.md'))
8 | + this.openPathOnEvent('application:open-license', '/usr/share/licenses/atom/LICENSE.md')
9 |
10 | this.configFile.onDidChange(settings => {
11 | for (let window of this.getAllWindows()) {
12 | --- a/src/workspace.js
13 | +++ b/src/workspace.js
14 | @@ -1132,7 +1132,7 @@
15 |
16 | // Open Atom's license in the active pane.
17 | openLicense () {
18 | - return this.open(path.join(process.resourcesPath, 'LICENSE.md'))
19 | + return this.open('/usr/share/licenses/atom/LICENSE.md')
20 | }
21 |
22 | // Synchronously open the given URI in the active pane. **Only use this method
23 |
--------------------------------------------------------------------------------
/rpms/atom/fix-restart.patch:
--------------------------------------------------------------------------------
1 | --- a/src/main-process/atom-application.js
2 | +++ b/src/main-process/atom-application.js
3 | @@ -1356,7 +1356,7 @@
4 | }
5 |
6 | restart () {
7 | - const args = []
8 | + const args = ['/usr//atom/atom']
9 | if (this.safeMode) args.push('--safe')
10 | if (this.logFile != null) args.push(`--log-file=${this.logFile}`)
11 | if (this.socketPath != null) args.push(`--socket-path=${this.socketPath}`)
12 |
--------------------------------------------------------------------------------
/rpms/atom/no-scripts.patch:
--------------------------------------------------------------------------------
1 | --- a/package.json
2 | +++ b/package.json
3 | @@ -14,13 +14,6 @@
4 | "bin": {
5 | "apm": "./bin/apm"
6 | },
7 | - "scripts": {
8 | - "build": "node script/check-version.js && grunt",
9 | - "prepublish": "grunt prepublish",
10 | - "install": "node script/postinstall.js",
11 | - "test": "node script/check-version.js && grunt test",
12 | - "check-version": "node version.js"
13 | - },
14 | "dependencies": {
15 | "asar-require": "0.3.0",
16 | "async": "~0.2.8",
17 |
--------------------------------------------------------------------------------
/rpms/atom/symbols-view-use-system-ctags.patch:
--------------------------------------------------------------------------------
1 | --- a/node_modules/symbols-view/lib/tag-generator.js
2 | +++ b/node_modules/symbols-view/lib/tag-generator.js
3 | @@ -72,7 +72,7 @@ export default class TagGenerator {
4 | generate() {
5 | let tags = {};
6 | const packageRoot = this.getPackageRoot();
7 | - const command = path.join(packageRoot, 'vendor', `ctags-${process.platform}`);
8 | + const command = 'ctags';
9 | const defaultCtagsFile = path.join(packageRoot, 'lib', 'ctags-config');
10 | const args = [`--options=${defaultCtagsFile}`, '--fields=+KS'];
11 |
--------------------------------------------------------------------------------
/rpms/atom/use-system-apm.patch:
--------------------------------------------------------------------------------
1 | --- a/script/lib/run-apm-install.js
2 | +++ b/script/lib/run-apm-install.js
3 | @@ -8,11 +8,8 @@
4 | const installEnv = Object.assign({}, process.env)
5 | // Set resource path so that apm can load metadata related to Atom.
6 | installEnv.ATOM_RESOURCE_PATH = CONFIG.repositoryRootPath
7 | - // Set our target (Electron) version so that node-pre-gyp can download the
8 | - // proper binaries.
9 | - installEnv.npm_config_target = CONFIG.appMetadata.electronVersion
10 | childProcess.execFileSync(
11 | - CONFIG.getApmBinPath(),
12 | + 'apm',
13 | ['--loglevel=error', ci ? 'ci' : 'install'],
14 | {env: installEnv, cwd: packagePath, stdio: stdioOptions || 'inherit'}
15 | )
16 | --- a/src/package-manager.js
17 | +++ b/src/package-manager.js
18 | @@ -169,13 +169,7 @@
19 | return configPath || this.apmPath
20 | }
21 |
22 | - const commandName = process.platform === 'win32' ? 'apm.cmd' : 'apm'
23 | - const apmRoot = path.join(process.resourcesPath, 'app', 'apm')
24 | - this.apmPath = path.join(apmRoot, 'bin', commandName)
25 | - if (!fs.isFileSync(this.apmPath)) {
26 | - this.apmPath = path.join(apmRoot, 'node_modules', 'atom-package-manager', 'bin', commandName)
27 | - }
28 | - return this.apmPath
29 | + return '/usr/lib/node_modules/atom-package-manager/bin/apm'
30 | }
31 |
32 | // Public: Get the paths being used to look for packages.
33 |
--------------------------------------------------------------------------------
/rpms/atom/use-system-npm.patch:
--------------------------------------------------------------------------------
1 | --- a/package.json
2 | +++ b/package.json
3 | @@ -32,8 +32,6 @@
4 | "keytar": "^4.0",
5 | "mv": "2.0.0",
6 | "ncp": "~0.5.1",
7 | - "node-gyp": "3.4.0",
8 | - "npm": "6.2.0",
9 | "open": "0.0.5",
10 | "plist": "git+https://github.com/nathansobo/node-plist.git",
11 | "q": "~0.9.7",
12 |
--------------------------------------------------------------------------------
/rpms/baka-mplayer/baka-mplayer.spec:
--------------------------------------------------------------------------------
1 | %global __strip_shared %(test $(rpm -E%?fedora) -eq 23 && echo "/usr/lib/rpm/brp-strip-shared %{__strip}" ||:)
2 | %global debug_package %{nil}
3 | %global project Baka-MPlayer
4 | %global repo %{project}
5 |
6 | # commit
7 | %global _commit e1df4b492ebeb4b4551e9e28ff6561a4ba382bb0
8 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
9 |
10 | Name: baka-mplayer
11 | Version: 2.0.4
12 | Release: 1.git%{_shortcommit}%{?dist}
13 | Summary: The mpv based media player
14 | Summary(zh_CN): 基于 mpv 的媒体播放器
15 |
16 | License: GPLv2
17 | Group: Applications/Multimedia
18 | Url: http://bakamplayer.u8sand.net
19 | Source0: https://github.com/u8sand/Baka-MPlayer/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
20 |
21 | BuildRequires: /usr/bin/lrelease-qt5
22 | BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
23 | BuildRequires: pkgconfig(Qt5Gui)
24 | BuildRequires: pkgconfig(Qt5Network)
25 | BuildRequires: pkgconfig(Qt5Svg)
26 | BuildRequires: pkgconfig(Qt5X11Extras)
27 | BuildRequires: pkgconfig(Qt5Widgets)
28 | BuildRequires: pkgconfig(mpv)
29 | Requires(post): desktop-file-utils
30 | Requires(postun): desktop-file-utils
31 | %if 0%{?fedora} > 21
32 | Requires(post): gtk-update-icon-cache
33 | Requires(postun): gtk-update-icon-cache
34 | %endif
35 |
36 | %description
37 | Baka MPlayer is a free and open source, cross-platform, libmpv based multimedia
38 | player. Its simple design reflects the idea for an uncluttered, simple, and
39 | enjoyable environment for watching tv shows.
40 |
41 | %description -l zh_CN
42 | Baka MPlayer 是一款开源, 跨平台, 基于 libmpv 的多媒体播放器.
43 | 其遵循简洁的设计理念, 使用户在简单, 愉快的环境中观看视频.
44 |
45 | %prep
46 | %setup -q -n %repo-%{_commit}
47 |
48 | %build
49 | %{qmake_qt5} src/Baka-MPlayer.pro CONFIG+="release install_translations man.extra" \
50 | lupdate=lupdate-qt5 lrelease=lrelease-qt5 \
51 | DOCDIR=%{_docdir} LICENSEDIR=%{_docdir}
52 | make %{?_smp_mflags}
53 |
54 | %install
55 | %make_install INSTALL_ROOT=%{buildroot}
56 |
57 | # stripe shared files
58 | %{__strip_shared}
59 |
60 | %post
61 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
62 | /usr/bin/gtk-update-icon-cache -f -t -q %{_datadir}/icons/hicolor ||:
63 | /usr/bin/update-desktop-database -q ||:
64 |
65 | %postun
66 | if [ $1 -eq 0 ]; then
67 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
68 | /usr/bin/gtk-update-icon-cache -f -t -q %{_datadir}/icons/hicolor ||:
69 | fi
70 | /usr/bin/update-desktop-database -q ||:
71 |
72 | %files
73 | %defattr(-,root,root,-)
74 | %doc DOCS/%{name}.md LICENSE
75 | %license LICENSE
76 | %{_bindir}/%{name}
77 | %{_datadir}/%{name}
78 | %{_mandir}/man1/%{name}.1.gz
79 | %{_datadir}/pixmaps/%{name}.svg
80 | %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
81 | %{_datadir}/applications/%{name}.desktop
82 |
83 | %changelog
84 | * Tue Dec 08 2015 mosquito - 2.0.4-1.gite1df4b4
85 | - Update to 2.0.4-1.gite1df4b4
86 | - Strip shared files
87 | - Hardened package
88 | * Wed Sep 23 2015 mosquito - 2.0.3-1.git554ec38
89 | - Update to 2.0.3-1.git554ec38
90 | * Thu Jul 23 2015 mosquito - 2.0.3-1.git8b02c84
91 | - Initial build
92 |
--------------------------------------------------------------------------------
/rpms/balena-etcher/balena-etcher-electron.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=BalenaEtcher
3 | Comment=Flash OS images to SD cards and USB drives, safely and easily.
4 | Exec=balena-etcher-electron %U
5 | Terminal=false
6 | Type=Application
7 | Icon=balena-etcher-electron
8 | Categories=Utility;
9 |
--------------------------------------------------------------------------------
/rpms/balena-etcher/balena-etcher-electron.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | if [[ $EUID -ne 0 ]] || [[ $ELECTRON_RUN_AS_NODE ]]; then
3 | exec electron12 /usr/lib/balena-etcher "$@"
4 | else
5 | exec electron12 --no-sandbox /usr/lib/balena-etcher "$@"
6 | fi
7 |
--------------------------------------------------------------------------------
/rpms/balena-etcher/balena-etcher.spec:
--------------------------------------------------------------------------------
1 | # Note: Npm depends on network. Network should be enabled when building this software.
2 |
3 | %global debug_package %{nil}
4 |
5 | Name: balena-etcher
6 | Version: 1.7.7
7 | Release: 1%{?dist}
8 | Summary: Flash OS images to SD cards & USB drives, safely and easily.
9 | License: ASL 2.0
10 | Url: https://github.com/balena-io/etcher
11 | Source0: %{url}/archive/refs/tags/v%{version}.tar.gz
12 | Source1: balena-etcher-electron.sh
13 | Source2: balena-etcher-electron.desktop
14 | BuildRequires: clang
15 | BuildRequires: nodejs
16 | BuildRequires: npm
17 |
18 | Requires: electron12
19 | Requires: libusb
20 |
21 | AutoReqProv: no
22 |
23 | %description
24 | %{summary}.
25 |
26 | %prep
27 | %autosetup -n etcher-%{version}
28 |
29 | %build
30 | npm ci
31 | npm run webpack
32 | npm prune --production
33 |
34 | %install
35 | %define _appdir %{buildroot}%{_prefix}/lib/balena-etcher
36 |
37 | install -d "%{_appdir}"
38 |
39 | install package.json "%{_appdir}"
40 | cp -a {lib,generated,node_modules} "%{_appdir}"
41 | install -D assets/icon.png "%{_appdir}/assets/icon.png"
42 | install -D lib/gui/app/index.html "%{_appdir}/lib/gui/app/index.html"
43 |
44 | install -Dm755 %{S:1} "%{buildroot}%{_bindir}/balena-etcher-electron"
45 | install -Dm644 %{S:2} "%{buildroot}%{_datadir}/applications/balena-etcher-electron.desktop"
46 |
47 | for size in 16x16 32x32 48x48 128x128 256x256 512x512; do
48 | install -Dm644 "assets/iconset/${size}.png" "%{buildroot}%{_datadir}/icons/hicolor/${size}/apps/balena-etcher-electron.png"
49 | done
50 |
51 | %files
52 | %{_bindir}/balena-etcher-electron
53 | %{_prefix}/lib/balena-etcher
54 | %{_datadir}/applications/balena-etcher-electron.desktop
55 | %{_datadir}/icons/hicolor/*/apps/balena-etcher-electron.png
56 |
57 | %changelog
58 | * Tue Feb 22 2022 zhullyb - 1.7.7-1
59 | - new version
60 |
61 | * Mon Feb 21 2022 zhullyb - 1.7.6-1
62 | - new version
63 |
64 | * Mon Feb 21 2022 zhullyb - 1.7.5-1
65 | - First build
66 |
67 |
68 |
--------------------------------------------------------------------------------
/rpms/bcloud/00_fix_network_error.patch:
--------------------------------------------------------------------------------
1 | diff --git a/bcloud/auth.py b/bcloud/auth.py
2 | index 602d5d4..b519f4d 100644
3 | --- a/bcloud/auth.py
4 | +++ b/bcloud/auth.py
5 | @@ -289,6 +289,7 @@ def get_bdstoken(cookie):
6 | '''
7 | url = const.PAN_REFERER
8 | req = net.urlopen(url, headers={'Cookie': cookie.header_output()})
9 | + cookie.load_list(req.headers.get_all('Set-Cookie'))
10 | if req:
11 | return parse_bdstoken(req.data.decode())
12 | else:
13 | diff --git a/bcloud/pcs.py b/bcloud/pcs.py
14 | index bbe41f3..47734a7 100644
15 | --- a/bcloud/pcs.py
16 | +++ b/bcloud/pcs.py
17 | @@ -542,7 +542,7 @@ def list_dir(cookie, tokens, path, page=1, num=100):
18 | ])
19 | req = net.urlopen(url, headers={
20 | 'Content-type': const.CONTENT_FORM_UTF8,
21 | - 'Cookie': cookie.sub_output('BAIDUID', 'BDUSS', 'PANWEB', 'cflag'),
22 | + 'Cookie': cookie.sub_output('BAIDUID', 'BDUSS', 'PANWEB', 'cflag', 'SCRC', 'STOKEN'),
23 | })
24 | if req:
25 | content = req.data
26 |
--------------------------------------------------------------------------------
/rpms/bcloud/01_verifycode_length.patch:
--------------------------------------------------------------------------------
1 | diff --git a/bcloud/SigninDialog.py b/bcloud/SigninDialog.py
2 | index f38c03d..4c320e6 100644
3 | --- a/bcloud/SigninDialog.py
4 | +++ b/bcloud/SigninDialog.py
5 | @@ -115,7 +115,7 @@ class SigninVcodeDialog(Gtk.Dialog):
6 | self.refresh_vcode()
7 |
8 | def on_vcode_confirm_clicked(self, button):
9 | - self.check_entry()
10 | + self.response(Gtk.ResponseType.OK)
11 |
12 |
13 | class SigninDialog(Gtk.Dialog):
14 | @@ -313,13 +313,13 @@ class SigninDialog(Gtk.Dialog):
15 | vcodetype = query['vcodetype']
16 | codeString = query['codeString']
17 | dialog = SigninVcodeDialog(self, username, cookie,
18 | - tokens['token'], codeString,
19 | + tokens, codeString,
20 | vcodetype)
21 | response = dialog.run()
22 | verifycode = dialog.get_vcode()
23 | codeString = dialog.codeString
24 | dialog.destroy()
25 | - if not verifycode or len(verifycode) != 4:
26 | + if not verifycode:
27 | self.signin_failed(_('Please input verification code!'))
28 | return
29 | else:
30 | @@ -383,7 +383,7 @@ class SigninDialog(Gtk.Dialog):
31 | verifycode = dialog.get_vcode()
32 | codeString = dialog.codeString
33 | dialog.destroy()
34 | - if not verifycode or len(verifycode) != 4:
35 | + if not verifycode:
36 | self.signin_failed(_('Please input verification code!'))
37 | return
38 | else:
39 |
--------------------------------------------------------------------------------
/rpms/bcloud/fix_get_bdstoken.patch:
--------------------------------------------------------------------------------
1 | diff --git a/bcloud/auth.py b/bcloud/auth.py
2 | index 35d25ab..602d5d4 100644
3 | --- a/bcloud/auth.py
4 | +++ b/bcloud/auth.py
5 | @@ -276,7 +276,7 @@ def parse_bdstoken(content):
6 | @return 返回bdstoken
7 | '''
8 | bdstoken = ''
9 | - bds_re = re.compile('BDSTOKEN\s*=\s*"([^"]+)"')
10 | + bds_re = re.compile('"bdstoken"\s*:\s*"([^"]+)"', re.IGNORECASE)
11 | bds_match = bds_re.search(content)
12 | if bds_match:
13 | bdstoken = bds_match.group(1)
14 |
--------------------------------------------------------------------------------
/rpms/brackets/brackets-fix-config.patch:
--------------------------------------------------------------------------------
1 | --- a/tasks/write-config.js
2 | +++ b/tasks/write-config.js
3 | @@ -26,8 +26,7 @@
4 | "use strict";
5 |
6 | module.exports = function (grunt) {
7 | - var common = require("./lib/common")(grunt),
8 | - build = require("./build")(grunt);
9 | + var common = require("./lib/common")(grunt);
10 |
11 | // task: write-config
12 | grunt.registerTask("write-config", "Merge package.json and src/brackets.config.json into src/config.json", function () {
13 | @@ -62,19 +61,14 @@ module.exports = function (grunt) {
14 | var done = this.async(),
15 | distConfig = grunt.file.readJSON("src/config.json");
16 |
17 | - build.getGitInfo(process.cwd()).then(function (gitInfo) {
18 | - distConfig.buildnumber = gitInfo.commits;
19 | - distConfig.version = distConfig.version.substr(0, distConfig.version.lastIndexOf("-") + 1) + gitInfo.commits;
20 | - distConfig.repository.SHA = gitInfo.sha;
21 | - distConfig.repository.branch = gitInfo.branch;
22 | + distConfig.buildnumber = "";
23 | + distConfig.version = distConfig.version.substr(0, distConfig.version.lastIndexOf("-") + 1) + "";
24 | + distConfig.repository.SHA = "";
25 | + distConfig.repository.branch = "";
26 | distConfig.config.build_timestamp = new Date().toString().split('(')[0].trim();
27 |
28 | common.writeJSON(grunt, "dist/config.json", distConfig);
29 |
30 | done();
31 | - }, function (err) {
32 | - grunt.log.writeln(err);
33 | - done(false);
34 | - });
35 | });
36 | };
37 |
--------------------------------------------------------------------------------
/rpms/caddy/Caddyfile.conf:
--------------------------------------------------------------------------------
1 | localhost:2020 {
2 | root /usr/share/caddy/html
3 | gzip
4 | browse
5 |
6 | log /var/log/caddy/access.log {
7 | rotate {
8 | size 100 # Rotate after 100 MB
9 | age 14 # Keep log files for 14 days
10 | keep 10 # Keep at most 10 log files
11 | }
12 | }
13 |
14 | errors {
15 | log /var/log/caddy/error.log
16 | # 404 404.html # Not Found
17 | # 500 500.html # Internal Server Error
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/rpms/caddy/build-script.patch:
--------------------------------------------------------------------------------
1 | --- a/caddy/build.bash
2 | +++ b/caddy/build.bash
3 | @@ -29,28 +29,28 @@
4 | # Current tag, if HEAD is on a tag
5 | name="${pkg}.gitTag"
6 | set +e
7 | -value="$(git -C "${git_repo}" describe --exact-match HEAD 2>/dev/null)"
8 | +value=""
9 | set -e
10 | ldflags+=("-X" "\"${name}=${value}\"")
11 |
12 | # Nearest tag on branch
13 | name="${pkg}.gitNearestTag"
14 | -value="$(git -C "${git_repo}" describe --abbrev=0 --tags HEAD)"
15 | +value=""
16 | ldflags+=("-X" "\"${name}=${value}\"")
17 |
18 | # Commit SHA
19 | name="${pkg}.gitCommit"
20 | -value="$(git -C "${git_repo}" rev-parse --short HEAD)"
21 | +value=""
22 | ldflags+=("-X" "\"${name}=${value}\"")
23 |
24 | # Summary of uncommitted changes
25 | name="${pkg}.gitShortStat"
26 | -value="$(git -C "${git_repo}" diff-index --shortstat HEAD)"
27 | +value=""
28 | ldflags+=("-X" "\"${name}=${value}\"")
29 |
30 | # List of modified files
31 | name="${pkg}.gitFilesModified"
32 | -value="$(git -C "${git_repo}" diff-index --name-only HEAD)"
33 | +value=""
34 | ldflags+=("-X" "\"${name}=${value}\"")
35 |
36 | go build -ldflags "${ldflags[*]}" -o "${output_filename}"
37 |
--------------------------------------------------------------------------------
/rpms/caddy/systemd-unit-file.patch:
--------------------------------------------------------------------------------
1 | --- a/dist/init/linux-systemd/caddy.service
2 | +++ b/dist/init/linux-systemd/caddy.service
3 | @@ -10,14 +10,14 @@
4 | StartLimitBurst=5
5 |
6 | ; User and group the process will run as.
7 | -User=www-data
8 | -Group=www-data
9 | +User=caddy
10 | +Group=caddy
11 |
12 | ; Letsencrypt-issued certificates will be written to this directory.
13 | Environment=CADDYPATH=/etc/ssl/caddy
14 |
15 | ; Always set "-root" to something safe in case it gets forgotten in the Caddyfile.
16 | -ExecStart=/usr/local/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
17 | +ExecStart=/usr/bin/caddy -log stdout -agree=true -conf=/etc/caddy/Caddyfile -root=/var/tmp
18 | ExecReload=/bin/kill -USR1 $MAINPID
19 |
20 | ; Limit the number of file descriptors; see `man systemd.exec` for more limit settings.
21 | @@ -40,9 +40,9 @@
22 | ; The following additional security directives only work with systemd v229 or later.
23 | ; They further retrict privileges that can be gained by caddy. Uncomment if you like.
24 | ; Note that you may have to add capabilities required by any plugins in use.
25 | -;CapabilityBoundingSet=CAP_NET_BIND_SERVICE
26 | -;AmbientCapabilities=CAP_NET_BIND_SERVICE
27 | -;NoNewPrivileges=true
28 | +CapabilityBoundingSet=CAP_NET_BIND_SERVICE
29 | +AmbientCapabilities=CAP_NET_BIND_SERVICE
30 | +NoNewPrivileges=true
31 |
32 | [Install]
33 | WantedBy=multi-user.target
34 |
--------------------------------------------------------------------------------
/rpms/ccal/ccal.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 |
3 | Name: ccal
4 | Version: 2.5.3
5 | Release: 1%{?dist}
6 | Summary: Display a calendar together with Chinese calendar
7 | Summary(zh_CN): Chinese calendar 命令行农历
8 |
9 | Group: Applications/Text
10 | License: GPL, portions LGPL
11 | URL: http://ccal.chinesebay.com/ccal
12 | Source0: http://ccal.chinesebay.com/ccal/%{name}-%{version}.tar.gz
13 |
14 | %description
15 | The ccal utility writes a Gregorian calendar together with
16 | Chinese calendar to standard output.
17 |
18 | %prep
19 | %setup -q
20 |
21 | %build
22 | make %{?_smp_mflags}
23 |
24 | %install
25 | %make_install BINDIR=%{buildroot}%{_bindir}
26 | make install-man MANDIR=%{buildroot}%{_mandir}
27 |
28 | %files
29 | %defattr(-,root,root,-)
30 | %doc ChangeLog README
31 | %license COPYING COPYING.LESSER
32 | %{_mandir}/man1/ccal*.1.gz
33 | %attr(0755,root,root) %{_bindir}/ccal*
34 |
35 | %changelog
36 | * Wed Sep 30 2015 mosquito - 2.5.3-1
37 | - Rebuild for Fedora 23
38 | * Sat Aug 03 2013 Huaren Zhong - 2.5.3
39 | - Rebuild for Fedora
40 | * Sun Mar 04 2012 - Zhuo Meng
41 | - Updated for version 2.5.3
42 | * Mon Oct 05 2009 - Zhuo Meng
43 | - Updated for version 2.5.2
44 | * Sat Aug 15 2009 - Zhuo Meng
45 | - Updated for version 2.5.1
46 | * Fri Jul 25 2008 - Zhuo Meng
47 | - Updated for version 2.5
48 | * Sun Mar 26 2006 - Zhuo Meng
49 | - Updated for version 2.4
50 | * Tue Jul 06 2004 - Zhuo Meng
51 | - Updated for version 2.3.3
52 | * Sat Jun 12 2004 - Zhuo Meng
53 | - Updated for version 2.3.2
54 | * Mon Oct 20 2003 - Zhuo Meng
55 | - Updated for version 2.3.1
56 | * Sun Sep 28 2003 - Zhuo Meng
57 | - Updated for version 2.3
58 | * Mon Jun 30 2003 - Wei He
59 | - Packaged into a RPM
60 |
--------------------------------------------------------------------------------
/rpms/checkinstall/checkinstall-latest.patch:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/rpms/checkinstall/checkinstall-latest.patch
--------------------------------------------------------------------------------
/rpms/compat-libgcrypt/hobble-libgcrypt:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # Quit out if anything fails.
4 | set -e -x
5 |
6 | # Clean out patent-or-otherwise-encumbered code.
7 | # EC: ????????? ??/??/2015
8 |
9 | rm -f cipher/ecc.c
10 |
--------------------------------------------------------------------------------
/rpms/compat-libgcrypt/libgcrypt-1.5.0-leak.patch:
--------------------------------------------------------------------------------
1 | diff -up libgcrypt-1.5.0/cipher/elgamal.c.leak libgcrypt-1.5.0/cipher/elgamal.c
2 | --- libgcrypt-1.5.0/cipher/elgamal.c.leak 2011-02-04 20:09:38.000000000 +0100
3 | +++ libgcrypt-1.5.0/cipher/elgamal.c 2012-12-03 14:51:10.743067964 +0100
4 | @@ -641,7 +641,10 @@ elg_generate_ext (int algo, unsigned int
5 | }
6 |
7 | if (xvalue)
8 | - ec = generate_using_x (&sk, nbits, xvalue, retfactors);
9 | + {
10 | + ec = generate_using_x (&sk, nbits, xvalue, retfactors);
11 | + gcry_mpi_release(xvalue);
12 | + }
13 | else
14 | {
15 | generate (&sk, nbits, retfactors);
16 | diff -up libgcrypt-1.5.0/cipher/primegen.c.leak libgcrypt-1.5.0/cipher/primegen.c
17 | --- libgcrypt-1.5.0/cipher/primegen.c.leak 2012-04-05 15:37:52.000000000 +0200
18 | +++ libgcrypt-1.5.0/cipher/primegen.c 2012-12-03 14:44:14.610010867 +0100
19 | @@ -1198,10 +1198,7 @@ gcry_prime_group_generator (gcry_mpi_t *
20 | gcry_mpi_t prime, gcry_mpi_t *factors,
21 | gcry_mpi_t start_g)
22 | {
23 | - gcry_mpi_t tmp = gcry_mpi_new (0);
24 | - gcry_mpi_t b = gcry_mpi_new (0);
25 | - gcry_mpi_t pmin1 = gcry_mpi_new (0);
26 | - gcry_mpi_t g = start_g? gcry_mpi_copy (start_g) : gcry_mpi_set_ui (NULL, 3);
27 | + gcry_mpi_t tmp, b, pmin1, g;
28 | int first = 1;
29 | int i, n;
30 |
31 | @@ -1214,6 +1211,11 @@ gcry_prime_group_generator (gcry_mpi_t *
32 | if (n < 2)
33 | return gpg_error (GPG_ERR_INV_ARG);
34 |
35 | + tmp = gcry_mpi_new (0);
36 | + b = gcry_mpi_new (0);
37 | + pmin1 = gcry_mpi_new (0);
38 | + g = start_g? gcry_mpi_copy (start_g) : gcry_mpi_set_ui (NULL, 3);
39 | +
40 | /* Extra sanity check - usually disabled. */
41 | /* mpi_set (tmp, factors[0]); */
42 | /* for(i = 1; i < n; i++) */
43 | diff -up libgcrypt-1.5.0/cipher/pubkey.c.leak libgcrypt-1.5.0/cipher/pubkey.c
44 | --- libgcrypt-1.5.0/cipher/pubkey.c.leak 2011-06-13 12:23:50.000000000 +0200
45 | +++ libgcrypt-1.5.0/cipher/pubkey.c 2012-12-03 15:23:42.377183489 +0100
46 | @@ -2853,6 +2853,8 @@ gcry_pk_encrypt (gcry_sexp_t *r_ciph, gc
47 |
48 | REGISTER_DEFAULT_PUBKEYS;
49 |
50 | + init_encoding_ctx (&ctx, PUBKEY_OP_ENCRYPT, gcry_pk_get_nbits (s_pkey));
51 | +
52 | /* Get the key. */
53 | rc = sexp_to_key (s_pkey, 0, NULL, &pkey, &module);
54 | if (rc)
55 | @@ -2873,7 +2875,6 @@ gcry_pk_encrypt (gcry_sexp_t *r_ciph, gc
56 | algo_elems = pubkey->elements_enc;
57 |
58 | /* Get the stuff we want to encrypt. */
59 | - init_encoding_ctx (&ctx, PUBKEY_OP_ENCRYPT, gcry_pk_get_nbits (s_pkey));
60 | rc = sexp_data_to_mpi (s_data, &data, &ctx);
61 | if (rc)
62 | goto leave;
63 | diff -up libgcrypt-1.5.0/src/hmac256.c.leak libgcrypt-1.5.0/src/hmac256.c
64 | --- libgcrypt-1.5.0/src/hmac256.c.leak 2011-02-04 20:17:33.000000000 +0100
65 | +++ libgcrypt-1.5.0/src/hmac256.c 2012-12-03 15:37:36.504955809 +0100
66 | @@ -435,7 +435,6 @@ _gcry_hmac256_finalize (hmac256_context_
67 | tmphd = _gcry_hmac256_new (NULL, 0);
68 | if (!tmphd)
69 | {
70 | - free (hd);
71 | return NULL;
72 | }
73 | _gcry_hmac256_update (tmphd, hd->opad, 64);
74 |
--------------------------------------------------------------------------------
/rpms/compat-libgcrypt/libgcrypt-1.5.0-use-fipscheck.patch:
--------------------------------------------------------------------------------
1 | diff -up libgcrypt-1.5.0/src/fips.c.use-fipscheck libgcrypt-1.5.0/src/fips.c
2 | --- libgcrypt-1.5.0/src/fips.c.use-fipscheck 2011-02-04 20:17:33.000000000 +0100
3 | +++ libgcrypt-1.5.0/src/fips.c 2011-07-20 16:17:21.000000000 +0200
4 | @@ -570,23 +570,48 @@ run_random_selftests (void)
5 | return !!err;
6 | }
7 |
8 | +static int
9 | +get_library_path(const char *libname, const char *symbolname, char *path, size_t pathlen)
10 | +{
11 | + Dl_info info;
12 | + void *dl, *sym;
13 | + int rv = -1;
14 | +
15 | + dl = dlopen(libname, RTLD_LAZY);
16 | + if (dl == NULL) {
17 | + return -1;
18 | + }
19 | +
20 | + sym = dlsym(dl, symbolname);
21 | +
22 | + if (sym != NULL && dladdr(sym, &info)) {
23 | + strncpy(path, info.dli_fname, pathlen-1);
24 | + path[pathlen-1] = '\0';
25 | + rv = 0;
26 | + }
27 | +
28 | + dlclose(dl);
29 | +
30 | + return rv;
31 | +}
32 | +
33 | /* Run an integrity check on the binary. Returns 0 on success. */
34 | static int
35 | check_binary_integrity (void)
36 | {
37 | #ifdef ENABLE_HMAC_BINARY_CHECK
38 | gpg_error_t err;
39 | - Dl_info info;
40 | + char libpath[4096];
41 | unsigned char digest[32];
42 | int dlen;
43 | char *fname = NULL;
44 | - const char key[] = "What am I, a doctor or a moonshuttle conductor?";
45 | -
46 | - if (!dladdr ("gcry_check_version", &info))
47 | + const char key[] = "orboDeJITITejsirpADONivirpUkvarP";
48 | +
49 | + if (get_library_path ("libgcrypt.so.11", "gcry_check_version", libpath, sizeof(libpath)))
50 | err = gpg_error_from_syserror ();
51 | else
52 | {
53 | - dlen = _gcry_hmac256_file (digest, sizeof digest, info.dli_fname,
54 | + dlen = _gcry_hmac256_file (digest, sizeof digest, libpath,
55 | key, strlen (key));
56 | if (dlen < 0)
57 | err = gpg_error_from_syserror ();
58 | @@ -594,7 +619,7 @@ check_binary_integrity (void)
59 | err = gpg_error (GPG_ERR_INTERNAL);
60 | else
61 | {
62 | - fname = gcry_malloc (strlen (info.dli_fname) + 1 + 5 + 1 );
63 | + fname = gcry_malloc (strlen (libpath) + 1 + 5 + 1 );
64 | if (!fname)
65 | err = gpg_error_from_syserror ();
66 | else
67 | @@ -603,7 +628,7 @@ check_binary_integrity (void)
68 | char *p;
69 |
70 | /* Prefix the basename with a dot. */
71 | - strcpy (fname, info.dli_fname);
72 | + strcpy (fname, libpath);
73 | p = strrchr (fname, '/');
74 | if (p)
75 | p++;
76 | diff -up libgcrypt-1.5.0/src/Makefile.in.use-fipscheck libgcrypt-1.5.0/src/Makefile.in
77 | --- libgcrypt-1.5.0/src/Makefile.in.use-fipscheck 2011-06-29 10:58:01.000000000 +0200
78 | +++ libgcrypt-1.5.0/src/Makefile.in 2011-07-20 16:19:33.000000000 +0200
79 | @@ -375,7 +375,7 @@ libgcrypt_la_LIBADD = $(gcrypt_res) \
80 | ../cipher/libcipher.la \
81 | ../random/librandom.la \
82 | ../mpi/libmpi.la \
83 | - ../compat/libcompat.la $(GPG_ERROR_LIBS)
84 | + ../compat/libcompat.la $(GPG_ERROR_LIBS) -ldl
85 |
86 | dumpsexp_SOURCES = dumpsexp.c
87 | dumpsexp_CFLAGS = $(arch_gpg_error_cflags)
88 |
--------------------------------------------------------------------------------
/rpms/compat-libgcrypt/libgcrypt-1.5.2-aliasing.patch:
--------------------------------------------------------------------------------
1 | diff -up libgcrypt-1.5.2/cipher/Makefile.am.aliasing libgcrypt-1.5.2/cipher/Makefile.am
2 | --- libgcrypt-1.5.2/cipher/Makefile.am.aliasing 2013-04-18 16:49:13.000000000 +0200
3 | +++ libgcrypt-1.5.2/cipher/Makefile.am 2013-04-25 21:48:57.867465215 +0200
4 | @@ -81,3 +81,9 @@ tiger.o: $(srcdir)/tiger.c
5 |
6 | tiger.lo: $(srcdir)/tiger.c
7 | `echo $(LTCOMPILE) -c $(srcdir)/tiger.c | $(o_flag_munging) `
8 | +
9 | +rijndael.o: $(srcdir)/rijndael.c
10 | + `echo $(COMPILE) -fno-strict-aliasing -c $(srcdir)/rijndael.c `
11 | +
12 | +rijndael.lo: $(srcdir)/rijndael.c
13 | + `echo $(LTCOMPILE) -fno-strict-aliasing -c $(srcdir)/rijndael.c `
14 | diff -up libgcrypt-1.5.2/cipher/Makefile.in.aliasing libgcrypt-1.5.2/cipher/Makefile.in
15 | --- libgcrypt-1.5.2/cipher/Makefile.in.aliasing 2013-04-18 17:06:03.000000000 +0200
16 | +++ libgcrypt-1.5.2/cipher/Makefile.in 2013-04-25 21:48:59.164493610 +0200
17 | @@ -638,6 +638,12 @@ tiger.o: $(srcdir)/tiger.c
18 | tiger.lo: $(srcdir)/tiger.c
19 | `echo $(LTCOMPILE) -c $(srcdir)/tiger.c | $(o_flag_munging) `
20 |
21 | +rijndael.o: $(srcdir)/rijndael.c
22 | + `echo $(COMPILE) -fno-strict-aliasing -c $(srcdir)/rijndael.c `
23 | +
24 | +rijndael.lo: $(srcdir)/rijndael.c
25 | + `echo $(LTCOMPILE) -fno-strict-aliasing -c $(srcdir)/rijndael.c `
26 | +
27 | # Tell versions [3.59,3.63) of GNU make to not export all variables.
28 | # Otherwise a system limit (for SysV at least) may be exceeded.
29 | .NOEXPORT:
30 | diff -up libgcrypt-1.5.2/cipher/rijndael.c.aliasing libgcrypt-1.5.2/cipher/rijndael.c
31 |
--------------------------------------------------------------------------------
/rpms/compat-libgcrypt/libgcrypt-1.5.3-ecc-test-fix.patch:
--------------------------------------------------------------------------------
1 | diff -up libgcrypt-1.5.3/tests/benchmark.c.eccfix libgcrypt-1.5.3/tests/benchmark.c
2 | --- libgcrypt-1.5.3/tests/benchmark.c.eccfix 2013-10-20 23:45:32.157297611 +0100
3 | +++ libgcrypt-1.5.3/tests/benchmark.c 2013-10-20 23:45:42.683275072 +0100
4 | @@ -962,7 +962,7 @@ ecc_bench (int iterations, int print_hea
5 | {
6 | #if USE_ECC
7 | gpg_error_t err;
8 | - int p_sizes[] = { 192, 224, 256, 384, 521 };
9 | + int p_sizes[] = { 256, 384 };
10 | int testno;
11 |
12 | if (print_header)
13 |
--------------------------------------------------------------------------------
/rpms/compat-libgcrypt/libgcrypt-1.5.3-pbkdf-speedup.patch:
--------------------------------------------------------------------------------
1 | diff -up libgcrypt-1.5.3/cipher/kdf.c.pbkdf-speedup libgcrypt-1.5.3/cipher/kdf.c
2 | --- libgcrypt-1.5.3/cipher/kdf.c.pbkdf-speedup 2014-01-21 15:49:22.676638703 +0100
3 | +++ libgcrypt-1.5.3/cipher/kdf.c 2014-01-21 15:52:40.115047218 +0100
4 | @@ -172,19 +172,21 @@ pkdf2 (const void *passphrase, size_t pa
5 | return ec;
6 | }
7 |
8 | + ec = gpg_err_code (gcry_md_setkey (md, passphrase, passphraselen));
9 | + if (ec)
10 | + {
11 | + gcry_md_close (md);
12 | + gcry_free (sbuf);
13 | + return ec;
14 | + }
15 | +
16 | /* Step 3 and 4. */
17 | memcpy (sbuf, salt, saltlen);
18 | for (lidx = 1; lidx <= l; lidx++)
19 | {
20 | for (iter = 0; iter < iterations; iter++)
21 | {
22 | - ec = gpg_err_code (gcry_md_setkey (md, passphrase, passphraselen));
23 | - if (ec)
24 | - {
25 | - gcry_md_close (md);
26 | - gcry_free (sbuf);
27 | - return ec;
28 | - }
29 | + gcry_md_reset (md);
30 | if (!iter) /* Compute U_1: */
31 | {
32 | sbuf[saltlen] = (lidx >> 24);
33 |
--------------------------------------------------------------------------------
/rpms/compat-libgcrypt/libgcrypt-1.5.3-whirlpool-bug.patch:
--------------------------------------------------------------------------------
1 | diff -up libgcrypt-1.5.3/cipher/whirlpool.c.whirlpool-bug libgcrypt-1.5.3/cipher/whirlpool.c
2 | --- libgcrypt-1.5.3/cipher/whirlpool.c.whirlpool-bug 2013-05-22 18:02:54.000000000 +0200
3 | +++ libgcrypt-1.5.3/cipher/whirlpool.c 2014-01-21 15:45:51.308919415 +0100
4 | @@ -56,6 +56,7 @@ typedef struct {
5 | unsigned char buffer[BLOCK_SIZE];
6 | size_t count;
7 | unsigned char length[32];
8 | + int bug;
9 | } whirlpool_context_t;
10 |
11 |
12 | @@ -1185,6 +1186,7 @@ whirlpool_init (void *ctx)
13 | whirlpool_context_t *context = ctx;
14 |
15 | memset (context, 0, sizeof (*context));
16 | + context->bug = secure_getenv("GCRYPT_WHIRLPOOL_BUG") != NULL;
17 | }
18 |
19 |
20 | @@ -1316,7 +1318,7 @@ whirlpool_add (whirlpool_context_t *cont
21 | buffer_n--;
22 | }
23 | whirlpool_add (context, NULL, 0);
24 | - if (!buffer_n)
25 | + if (context->bug && !buffer_n)
26 | /* Done. */
27 | return;
28 | }
29 |
--------------------------------------------------------------------------------
/rpms/danmaQ/danmaQ.spec.obsolete:
--------------------------------------------------------------------------------
1 | %global _icondir %{_datadir}/icons/hicolor
2 | %global _commit 9fe006265ab3e7b796cdbb3a5c3993e76cbc8e68
3 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
4 |
5 | Name: danmaQ
6 | Version: 0
7 | Release: 1.git%{_shortcommit}%{?dist}
8 | Summary: DanmaQ is a small QT program to play danmaku on any screen
9 |
10 | Group: Applications/Internet
11 | License: GPLv3
12 | URL: https://github.com/tuna/danmaQ
13 | #Source0: %{url}/%{_commit}/%{name}-%{_shortcommit}.tar.gz
14 | Source0: %{url}/archive/%{_commit}.tar.gz
15 |
16 | BuildRequires: qt5-qtx11extras-devel
17 | BuildRequires: qt5-qtbase-devel
18 | BuildRequires: cmake
19 | BuildRequires: desktop-file-utils
20 |
21 | %description
22 | DanmaQ, pronounced as /danmakju:/ is a small QT program to play danmaku on any screen.
23 |
24 | %prep
25 | %setup -q -n %{name}-%{_commit}
26 |
27 | %build
28 | mkdir build && cd build
29 | cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
30 | %make_build
31 |
32 |
33 | %install
34 | # install
35 | install -Dm 0755 build/src/%{name} %{buildroot}%{_bindir}/%{name}
36 |
37 | # icon files
38 | install -Dm0644 src/icons/statusicon.ico %{buildroot}%{_datadir}/pixmaps/statusicon.ico
39 | install -Dm0644 src/icons/statusicon.png %{buildroot}%{_datadir}/pixmaps/statusicon.png
40 | install -Dm0644 src/icons/statusicon_disabled.png %{buildroot}%{_datadir}/pixmaps/statusicon_disabled.png
41 | install -Dm0644 src/icons/statusicon.svg %{buildroot}%{_icondir}/scalable/apps/statusicon.svg
42 |
43 |
44 | # desktop file
45 | install -d %{buildroot}%{_datadir}/applications
46 | cat > %{buildroot}%{_datadir}/applications/%{name}.desktop </dev/null ||:
57 | /usr/bin/update-desktop-database &>/dev/null ||:
58 |
59 | %postun
60 | if [ $1 -eq 0 ]; then
61 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
62 | /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null ||:
63 | fi
64 | /usr/bin/update-desktop-database &>/dev/null ||:
65 |
66 | %posttrans
67 | /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null ||:
68 |
69 | %files
70 | %defattr(-,root,root,-)
71 | %doc README.md
72 | %license LICENSE
73 | %{_bindir}/%{name}
74 | %{_datadir}/pixmaps/*
75 | %{_datadir}/icons/hicolor/*/apps/
76 | %{_datadir}/applications/%{name}.desktop
77 |
78 | %changelog
79 | * Tue Dec 20 2016 Zamir SUN - 0-1.git9fe0062
80 | - Initial with danmaQ git 9fe006265ab3e7b796cdbb3a5c3993e76cbc8e68
81 |
--------------------------------------------------------------------------------
/rpms/deadbeef/desktop.patch:
--------------------------------------------------------------------------------
1 | --- a/deadbeef.desktop.in
2 | +++ b/deadbeef.desktop.in
3 | @@ -18,60 +18,60 @@
4 |
5 | X-Ayatana-Desktop-Shortcuts=Play;Pause;Stop;Next;Prev
6 |
7 | -Keywords=Sound;Music;Audio;Player;Musicplayer;MP3
8 | -Keywords[zh_TW]=Sound;Music;Audio;Player;Musicplayer;MP3;音樂;音樂播放器;播放器;音訊
9 | +Keywords=Sound;Music;Audio;Player;Musicplayer;MP3;
10 | +Keywords[zh_TW]=Sound;Music;Audio;Player;Musicplayer;MP3;音樂;音樂播放器;播放器;音訊;
11 |
12 | -[Play Shortcut Group]
13 | +[X-Play Shortcut Group]
14 | Name=Play
15 | Name[zh_TW]=播放
16 | Exec=deadbeef --play
17 | TargetEnvironment=Unity
18 |
19 | -[Pause Shortcut Group]
20 | +[X-Pause Shortcut Group]
21 | Name=Pause
22 | Name[zh_TW]=暫停
23 | Exec=deadbeef --pause
24 | TargetEnvironment=Unity
25 |
26 | -[Stop Shortcut Group]
27 | +[X-Stop Shortcut Group]
28 | Name=Stop
29 | Name[zh_TW]=停止
30 | Exec=deadbeef --stop
31 | TargetEnvironment=Unity
32 |
33 | -[Next Shortcut Group]
34 | +[X-Next Shortcut Group]
35 | Name=Next
36 | Name[zh_TW]=下一首
37 | Exec=deadbeef --next
38 | TargetEnvironment=Unity
39 |
40 | -[Prev Shortcut Group]
41 | +[X-Prev Shortcut Group]
42 | Name=Prev
43 | Name[zh_TW]=上一首
44 | Exec=deadbeef --prev
45 | TargetEnvironment=Unity
46 |
47 | -[Desktop Action Play]
48 | +[X-Desktop Action Play]
49 | Name=Play
50 | Name[zh_TW]=播放
51 | Exec=deadbeef --play
52 |
53 | -[Desktop Action Pause]
54 | +[X-Desktop Action Pause]
55 | Name=Pause
56 | Name[zh_TW]=暫停
57 | Exec=deadbeef --pause
58 |
59 | -[Desktop Action Stop]
60 | +[X-Desktop Action Stop]
61 | Name=Stop
62 | Name[zh_TW]=停止
63 | Exec=deadbeef --stop
64 |
65 | -[Desktop Action Next]
66 | +[X-Desktop Action Next]
67 | Name=Next
68 | Name[zh_TW]=下一首
69 | Exec=deadbeef --next
70 |
71 | -[Desktop Action Previous]
72 | +[X-Desktop Action Previous]
73 | Name=Prev
74 | Name[zh_TW]=上一首
75 | Exec=deadbeef --prev
76 |
--------------------------------------------------------------------------------
/rpms/docky/docky-startscript-path.patch:
--------------------------------------------------------------------------------
1 | diff -rupN docky-2.1.4.orig/Docky/docky.in docky-2.1.4/Docky/docky.in
2 | --- docky-2.1.4.orig/Docky/docky.in 2012-04-03 17:15:28.359056371 +0200
3 | +++ docky-2.1.4/Docky/docky.in 2012-04-03 17:53:37.908012201 +0200
4 | @@ -3,12 +3,5 @@
5 | SCRIPT_PATH=`dirname $0`
6 | SCRIPT_PATH=`cd $SCRIPT_PATH; pwd`
7 |
8 | -if [ "x$SCRIPT_PATH" = "x@abs_srcdir@/bin/Debug" ] ||
9 | - [ "x$SCRIPT_PATH" = "x@abs_srcdir@" ] ; then
10 | - echo "*** Running uninstalled ***"
11 | - DOCKY_EXE="@abs_srcdir@/bin/Debug/Docky.exe"
12 | -else
13 | - DOCKY_EXE="@expanded_libdir@/@PACKAGE@/Docky.exe"
14 | -fi
15 | -
16 | +DOCKY_EXE="@expanded_libdir@/@PACKAGE@/Docky.exe"
17 | exec mono @MONO_DEBUG_ARGS@ "$DOCKY_EXE" @DOCKY_DEBUG_ARGS@ "$@"
18 |
--------------------------------------------------------------------------------
/rpms/doubanfm-qt/doubanfm-qt.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %global project doubanfm-qt
3 | %global repo %{project}
4 |
5 | # commit
6 | %global _commit 826e8a2d9744590c95a2e2ff61498fff67b13d15
7 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
8 |
9 | Name: doubanfm-qt
10 | Version: 2.2
11 | Release: 2.git%{_shortcommit}%{?dist}
12 | Summary: A douban.fm client written in Qt5
13 | Summary(zh_CN): 基于 Qt5 编写的 douban.fm 客户端
14 |
15 | Group: Applications/Multimedia
16 | License: MIT
17 | URL: https://github.com/zonyitoo/doubanfm-qt
18 | Source0: https://github.com/zonyitoo/doubanfm-qt/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
19 |
20 | BuildRequires: qt5-qtbase-devel
21 | BuildRequires: qt5-qtbase-gui
22 | BuildRequires: qt5-qtmultimedia-devel
23 | BuildRequires: pulseaudio-libs-devel
24 | Requires: gstreamer-plugins-ugly
25 | Requires: gstreamer1-plugins-ugly
26 | Requires: gstreamer1-libav
27 |
28 | %description
29 | A douban.fm client written in pure Qt5.
30 |
31 | %description -l zh_CN
32 | 基于 Qt5 编写的 douban.fm 客户端
33 |
34 | %prep
35 | %setup -q -n %repo-%{_commit}
36 |
37 | %build
38 | mkdir build
39 | pushd build
40 | %{_qt5_qmake} ../%{name}.pro
41 | make %{?_smp_mflags}
42 |
43 | %install
44 | # install douban.fm
45 | install -Dm 0755 build/%{name} %{buildroot}%{_bindir}/%{name}
46 | install -Dm 0644 QDoubanFM.png %{buildroot}%{_datadir}/icons/%{name}.png
47 |
48 | # desktop file
49 | install -d %{buildroot}%{_datadir}/applications
50 | cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
51 | [Desktop Entry]
52 | Version=1.0
53 | Type=Application
54 | Encoding=UTF-8
55 | Name=DoubanFM (qt5)
56 | Name[zh_CN]=豆瓣FM (qt5)
57 | Name[zh_TW]=豆瓣FM (qt5)
58 | GenericName=DoubanFM Qt5 Client
59 | GenericName[zh_CN]=DoubanFM Qt5 客户端
60 | GenericName[zh_TW]=DoubanFM Qt5 客户端
61 | Comment=A DoubanFM Client written in Qt5
62 | Comment[zh_CN]=基于 Qt5 开发的 douban.fm 客户端
63 | Comment[zh_TW]=基于 Qt5 开发的 douban.fm 客户端
64 | Exec=%{name}
65 | Icon=%{name}
66 | Terminal=false
67 | Categories=AudioVideo;Player;
68 | EOF
69 |
70 | %post -p /sbin/ldconfig
71 | %postun -p /sbin/ldconfig
72 |
73 | %files
74 | %defattr(-,root,root,-)
75 | %doc ChangeLog README.md
76 | %license Copyright
77 | %{_bindir}/%{name}
78 | %{_datadir}/icons/%{name}.png
79 | %{_datadir}/applications/%{name}.desktop
80 |
81 | %changelog
82 | * Sun Dec 6 2015 mosquito - 2.2-2.git826e8a2
83 | - Update version to 2.2-2.git826e8a2
84 | * Wed Jul 1 2015 mosquito - 2.2-1.gitc20734e
85 | - Update version to 2.2-1.gitc20734e
86 | * Wed Jan 7 2015 mosquito - 2.2git20140611-2
87 | - Add depends
88 | * Tue Nov 4 2014 mosquito - 2.2git20140611-1
89 | - Update version to 2.2git20140611
90 | * Tue Oct 28 2014 mosquito - 2.2git20140503-1
91 | - Initial build
92 |
--------------------------------------------------------------------------------
/rpms/electron/brightray-use-system-ffmpeg.patch:
--------------------------------------------------------------------------------
1 | --- a/brightray.gyp
2 | +++ b/brightray.gyp
3 | @@ -101,8 +101,6 @@
4 | }, {
5 | 'link_settings': {
6 | 'libraries': [
7 | - # Link with ffmpeg.
8 | - '<(libchromiumcontent_dir)/libffmpeg.so',
9 | # Following libraries are required by libchromiumcontent:
10 | '-lasound',
11 | '-lcap',
12 |
--------------------------------------------------------------------------------
/rpms/electron/chromium-system-ffmpeg-r2.patch:
--------------------------------------------------------------------------------
1 | --- a/media/ffmpeg/ffmpeg_common.h 2015-11-27 12:01:56.155462264 +0000
2 | +++ b/media/ffmpeg/ffmpeg_common.h 2015-11-27 12:03:03.348846300 +0000
3 | @@ -19,10 +19,6 @@
4 |
5 | // Include FFmpeg header files.
6 | extern "C" {
7 | -// Disable deprecated features which result in spammy compile warnings. This
8 | -// list of defines must mirror those in the 'defines' section of BUILD.gn file &
9 | -// ffmpeg.gyp file or the headers below will generate different structures!
10 | -#define FF_API_CONVERGENCE_DURATION 0
11 | // Upstream libavcodec/utils.c still uses the deprecated
12 | // av_dup_packet(), causing deprecation warnings.
13 | // The normal fix for such things is to disable the feature as below,
14 | @@ -36,7 +32,6 @@
15 | MSVC_PUSH_DISABLE_WARNING(4244);
16 | #include
17 | #include
18 | -#include
19 | #include
20 | #include
21 | #include
22 | diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc
23 | index 155e980..7ba327a 100644
24 | --- a/media/filters/ffmpeg_demuxer.cc
25 | +++ b/media/filters/ffmpeg_demuxer.cc
26 | @@ -1034,24 +1034,6 @@
27 | // If no estimate is found, the stream entry will be kInfiniteDuration().
28 | std::vector start_time_estimates(format_context->nb_streams,
29 | kInfiniteDuration());
30 | - const AVFormatInternal* internal = format_context->internal;
31 | - if (internal && internal->packet_buffer &&
32 | - format_context->start_time != static_cast(AV_NOPTS_VALUE)) {
33 | - struct AVPacketList* packet_buffer = internal->packet_buffer;
34 | - while (packet_buffer != internal->packet_buffer_end) {
35 | - DCHECK_LT(static_cast(packet_buffer->pkt.stream_index),
36 | - start_time_estimates.size());
37 | - const AVStream* stream =
38 | - format_context->streams[packet_buffer->pkt.stream_index];
39 | - if (packet_buffer->pkt.pts != static_cast(AV_NOPTS_VALUE)) {
40 | - const base::TimeDelta packet_pts =
41 | - ConvertFromTimeBase(stream->time_base, packet_buffer->pkt.pts);
42 | - if (packet_pts < start_time_estimates[stream->index])
43 | - start_time_estimates[stream->index] = packet_pts;
44 | - }
45 | - packet_buffer = packet_buffer->next;
46 | - }
47 | - }
48 |
49 | AVStream* audio_stream = NULL;
50 | AudioDecoderConfig audio_config;
51 |
--------------------------------------------------------------------------------
/rpms/electron/dont-use-sysroot.patch:
--------------------------------------------------------------------------------
1 | --- a/script/bootstrap.py
2 | +++ b/script/bootstrap.py
3 | @@ -43,9 +43,6 @@
4 | args.libcc_source_path, args.libcc_shared_library_path,
5 | args.libcc_static_library_path)
6 |
7 | - if PLATFORM == 'linux':
8 | - download_sysroot(args.target_arch)
9 | -
10 | create_chrome_version_h()
11 | touch_config_gypi()
12 | run_update()
13 | --- a/toolchain.gypi
14 | +++ b/toolchain.gypi
15 | @@ -53,10 +53,10 @@
16 | 'sysroot%': '<(source_root)/vendor/debian_wheezy_arm-sysroot',
17 | }],
18 | ['target_arch=="ia32"', {
19 | - 'sysroot%': '<(source_root)/vendor/debian_wheezy_i386-sysroot',
20 | + 'sysroot%': '/',
21 | }],
22 | ['target_arch=="x64"', {
23 | - 'sysroot%': '<(source_root)/vendor/debian_wheezy_amd64-sysroot',
24 | + 'sysroot%': '/',
25 | }],
26 | ],
27 | },
28 | @@ -142,11 +142,10 @@
29 | 'target_conditions': [
30 | ['_toolset=="target"', {
31 | 'cflags': [
32 | - '--sysroot=<(sysroot)',
33 | + '',
34 | ],
35 | 'ldflags': [
36 | - '--sysroot=<(sysroot)',
37 | - ' - 0.8-1
40 | - Update to 0.8
41 | * Tue Dec 27 2016 Zamir SUN - 0.5-2
42 | - Rename to elvish
43 | * Tue Dec 20 2016 Zamir SUN - 0.5-1
44 | - Initial with elvish-0.5
45 |
--------------------------------------------------------------------------------
/rpms/fcitx/brise.obsolete:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %global project brise
3 | %global repo %{project}
4 |
5 | # commit
6 | %global _commit 7dbd56b9ce08f75228a7c897109ec397cb48b057
7 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
8 |
9 | Name: brise
10 | Version: 0.35
11 | Release: 3.git%{_shortcommit}%{?dist}
12 | Summary: The official Rime schema repository
13 | Summary(zh_CN): Rime 输入法规则库
14 |
15 | License: GPLv3
16 | URL: https://github.com/rime/brise
17 | Source0: https://github.com/rime/brise/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
18 |
19 | BuildRequires: kyotocabinet
20 | BuildRequires: librime-tools
21 |
22 | %description
23 | La brise: The official Rime schema repository.
24 |
25 | %description -l zh_CN
26 | brise: Rime 输入法规则库.
27 |
28 | %prep
29 | %setup -q -n %{repo}-%{_commit}
30 |
31 | %build
32 | make %{?_smp_mflags}
33 |
34 | %install
35 | %make_install
36 |
37 | %files
38 | %defattr(-,root,root,-)
39 | %doc README.md ChangeLog AUTHORS
40 | %license LICENSE
41 | %{_datadir}/rime-data
42 |
43 | %changelog
44 | * Tue Mar 29 2016 mosquito - 0.35-3.git7dbd56b
45 | - Update to 0.35-3.git7dbd56b
46 |
47 | * Wed Sep 23 2015 mosquito - 0.35-2.gitd6ad164
48 | - Update to 0.35-2.gitd6ad164
49 |
50 | * Wed Feb 04 2015 mosquito - 0.35git20150203-1
51 | - Update version to 0.35git20150203
52 |
53 | * Sun Jan 25 2015 mosquito - 0.35git20150125-1
54 | - Update version to 0.35git20150125
55 |
56 | * Tue Jan 6 2015 Peng Wu - 0.35-1
57 | - Update to 0.35
58 |
59 | * Sun Dec 28 2014 mosquito - 0.35git20141225-1
60 | - Update version to 0.35git20141225
61 |
62 | * Wed Dec 03 2014 mosquito - 0.35git20141201-1
63 | - Update version to 0.35git20141201
64 |
65 | * Wed Nov 19 2014 mosquito - 0.35git20141119-1
66 | - Update version to 0.35git20141119
67 |
68 | * Wed Nov 5 2014 mosquito - 0.35git20141015-1
69 | - Update version to 0.35git20141015
70 |
71 | * Mon Sep 15 2014 mosquito - 0.35git20140905-1
72 | - Build for rhel/centos 7
73 | - Update to 0.35git20140905
74 |
75 | * Fri Aug 15 2014 Fedora Release Engineering - 0.32-3
76 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
77 |
78 | * Sat Jun 07 2014 Fedora Release Engineering - 0.32-2
79 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
80 |
81 | * Fri Dec 27 2013 Peng Wu - 0.32-1
82 | - Update to 0.32
83 |
84 | * Mon Dec 9 2013 Peng Wu - 0.30-1
85 | - Update to 0.30
86 |
87 | * Sat Aug 03 2013 Fedora Release Engineering - 0.22-3
88 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
89 |
90 | * Wed May 22 2013 Peng Wu - 0.22-2
91 | - Fixes the spec
92 |
93 | * Thu May 9 2013 Peng Wu - 0.22-1
94 | - The Initial Version
95 |
--------------------------------------------------------------------------------
/rpms/fcitx/fcitx-googlepinyin.obsolete:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %global project fcitx-googlepinyin
3 | %global repo %{project}
4 |
5 | %global _commit 6536e187c6637a866aaf25649d7bf3f0d9a926d3
6 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
7 |
8 | Name: fcitx-googlepinyin
9 | Version: 0.1.6
10 | Release: 3.git%{_shortcommit}%{?dist}
11 | Summary: Googlepinyin module for fcitx
12 | Group: System Environment/Libraries
13 | License: GPLv3
14 | Url: https://fcitx-im.org/wiki/Googlepinyin
15 | Source0: https://github.com/fcitx/fcitx-googlepinyin/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
16 |
17 | BuildRequires: cmake
18 | BuildRequires: gettext
19 | BuildRequires: intltool
20 | BuildRequires: pkgconfig
21 | BuildRequires: fcitx-devel
22 | BuildRequires: libgooglepinyin-devel
23 | BuildRequires: hicolor-icon-theme
24 | Requires: fcitx
25 |
26 | %description
27 | fcitx-googlepinyin is a Googlepinyin module for fcitx.
28 |
29 | %prep
30 | %setup -q -n %{repo}-%{_commit}
31 | sed -i '/addon/ifcitx_add_inputmethod_conf_file(googlepinyin.conf)' src/CMakeLists.txt
32 |
33 | %build
34 | %{cmake}
35 | make %{?_smp_mflags} VERBOSE=1
36 |
37 | %install
38 | make install DESTDIR=%{buildroot} INSTALL="install -p"
39 |
40 | %find_lang %{name}
41 |
42 | %files -f %{name}.lang
43 | %defattr(-,root,root,-)
44 | %{_libdir}/fcitx/*.so
45 | %{_datadir}/fcitx/addon/*.conf
46 | %{_datadir}/fcitx/inputmethod/*.conf
47 | %{_datadir}/fcitx/imicon/*.png
48 | %{_datadir}/fcitx/skin/classic/*.png
49 | %{_datadir}/fcitx/skin/default/*.png
50 | %{_datadir}/icons/hicolor/*/apps/%{name}.png
51 |
52 | %changelog
53 | * Wed May 4 2016 mosquito 0.1.6-3
54 | - Fix https://github.com/FZUG/repo/issues/71
55 | * Mon Mar 28 2016 mosquito 0.1.6-2
56 | - Rebuild for fedora 23
57 | * Mon Sep 15 2014 mosquito 0.1.6-1
58 | - Rebuild for rhel/centos 7 and fedora 20/21/rawhide
59 | * Thu Oct 11 2012 i@marguerite.su
60 | - updte 0.1.6
61 | * a bug fix release
62 | * Mon Jun 25 2012 i@marguerite.su
63 | - fix fedora builds.
64 | * Mon May 28 2012 i@marguerite.su
65 | - bring it into DVD.
66 | * Mon Mar 12 2012 cfarrell@suse.com
67 | - license update: GPL-3.0+
68 | * Fri Mar 9 2012 hillwood@linuxfans.org
69 | - update to 0.4.1
70 | Portable to run with archive
71 | * Wed Feb 29 2012 i@marguerite.su
72 | - set _service disabled. update source from git.
73 | * Sat Jan 28 2012 i@marguerite.su
74 | - Upstream version 0.1.4git
75 | * Sun Oct 2 2011 hillwood@linuxfans.org
76 | - Update to 0.1.3
77 | coexistance with latest Fcitx API.
78 | pre-input text shows Chinese and fixed cursor position.
79 | * Thu Sep 8 2011 hillwood@linuxfans.org
80 | - Update to 0.1.2
81 | * Thu Sep 8 2011 hillwood@linuxfans.org
82 | - First package for 0.1.1
83 |
--------------------------------------------------------------------------------
/rpms/fcitx/libgooglepinyin.obsolete:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 |
3 | Name: libgooglepinyin
4 | Version: 0.1.2
5 | Release: 3%{?dist}
6 | Summary: A fork from google pinyin on android
7 | License: Apache-2.0
8 | Group: System Environment/Libraries
9 | Url: https://code.google.com/p/libgooglepinyin
10 | Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/libgooglepinyin/%{name}-%{version}.tar.bz2
11 |
12 | BuildRequires: cmake
13 | BuildRequires: intltool
14 | BuildRequires: cairo-devel
15 | BuildRequires: gtk2-devel
16 | BuildRequires: pango-devel
17 |
18 | %description
19 | libgooglepinyin is an input method fork from google pinyin on android
20 |
21 | %package devel
22 | Summary: Development files for libgooglepinyin
23 | Group: Development/Libraries
24 | Requires: python-libs
25 | Requires: %{name}%{?_isa} = %{version}-%{release}
26 |
27 | %description devel
28 | The libgooglepinyin-devel package includes the header files
29 | for the googlepinyin package.
30 |
31 | %prep
32 | %setup -q -n %{name}-%{version}
33 |
34 | %build
35 | %{cmake}
36 | make %{?_smp_mflags} VERBOSE=1
37 |
38 | %install
39 | make DESTDIR=%{buildroot} install
40 |
41 | %post -p /sbin/ldconfig
42 | %postun -p /sbin/ldconfig
43 |
44 | %files
45 | %defattr(-,root,root,-)
46 | %{_libdir}/%{name}.so.*
47 | %{_libdir}/googlepinyin/
48 |
49 | %files devel
50 | %defattr(-,root,root,-)
51 | %{_libdir}/%{name}.so
52 | %{_libdir}/pkgconfig/googlepinyin.pc
53 | %{_includedir}/googlepinyin/
54 |
55 | %changelog
56 | * Mon Mar 28 2016 mosquito 0.1.2-3
57 | - Rebuild for fedora 23
58 | * Tue Sep 16 2014 mosquito 0.1.2-2
59 | - copr need python
60 | * Mon Sep 15 2014 mosquito 0.1.2-1
61 | - Rebuild for rhel/centos 7 and fedora 20/21/rawhide
62 | * Mon Sep 17 2012 hillwood@linuxfans.org
63 | - Fix ibus-googlepinyin working in 64bit for openSUSE
64 | * Sun Jun 24 2012 i@marguerite.su
65 | - fix builds on fedora.
66 | * Fri Jan 27 2012 i@marguerite.su
67 | - Update Source to latest git
68 | Fix builds, merge changelog
69 | * Wed Sep 7 2011 hillwood@linuxfans.org
70 | - first build
71 |
--------------------------------------------------------------------------------
/rpms/fcitx/opencc-fixes-cmake.patch:
--------------------------------------------------------------------------------
1 | Index: OpenCC-ver.1.0.2/doc/CMakeLists.txt
2 | ===================================================================
3 | --- OpenCC-ver.1.0.2.orig/doc/CMakeLists.txt
4 | +++ OpenCC-ver.1.0.2/doc/CMakeLists.txt
5 | @@ -29,7 +29,7 @@ if(BUILD_DOCUMENTATION)
6 | DIRECTORY
7 | ${CMAKE_BINARY_DIR}/doc/html
8 | DESTINATION
9 | - ${DIR_SHARE_OPENCC}doc
10 | + ${DIR_SHARE_OPENCC}/doc
11 | )
12 |
13 | set_directory_properties(
14 | Index: OpenCC-ver.1.0.2/CMakeLists.txt
15 | ===================================================================
16 | --- OpenCC-ver.1.0.2.orig/CMakeLists.txt
17 | +++ OpenCC-ver.1.0.2/CMakeLists.txt
18 | @@ -65,11 +65,11 @@
19 | ######## Directory
20 |
21 | set (DIR_PREFIX ${CMAKE_INSTALL_PREFIX})
22 | -set (DIR_INCLUDE ${DIR_PREFIX}/include/)
23 | -set (DIR_SHARE ${DIR_PREFIX}/share/)
24 | -set (DIR_ETC ${DIR_PREFIX}/etc/)
25 | +set (DIR_INCLUDE ${INCLUDE_INSTALL_DIR})
26 | +set (DIR_SHARE ${SHARE_INSTALL_PREFIX})
27 | +set (DIR_ETC ${SYSCONF_INSTALL_DIR})
28 | set (LIB_SUFFIX "")
29 | -set (DIR_LIBRARY ${DIR_PREFIX}/lib${LIB_SUFFIX}/)
30 | +set (DIR_LIBRARY ${LIB_INSTALL_DIR})
31 |
32 | if (DEFINED SHARE_INSTALL_PREFIX)
33 | set (DIR_SHARE ${SHARE_INSTALL_PREFIX})
34 | @@ -82,8 +82,8 @@ if (DEFINED SYSCONF_INSTALL_DIR)
35 | set (DIR_ETC ${SYSCONF_INSTALL_DIR})
36 | endif (DEFINED SYSCONF_INSTALL_DIR)
37 |
38 | -set (DIR_SHARE_OPENCC ${DIR_SHARE}opencc/)
39 | -set (DIR_SHARE_LOCALE ${DIR_SHARE}locale/)
40 | +set (DIR_SHARE_OPENCC ${DIR_SHARE}/opencc/)
41 | +set (DIR_SHARE_LOCALE ${DIR_SHARE}/locale/)
42 |
43 | ######## Configuration
44 |
45 | Index: OpenCC-ver.1.0.2/src/CMakeLists.txt
46 | ===================================================================
47 | --- OpenCC-ver.1.0.2.orig/src/CMakeLists.txt
48 | +++ OpenCC-ver.1.0.2/src/CMakeLists.txt
49 | @@ -82,7 +82,7 @@ endif (CMAKE_BUILD_TYPE MATCHES Debug)
50 | install(
51 | TARGETS libopencc
52 | - LIBRARY DESTINATION ${DIR_LIBRARY}
53 | - ARCHIVE DESTINATION ${DIR_LIBRARY}
54 | + LIBRARY DESTINATION ${LIB_INSTALL_DIR}
55 | + ARCHIVE DESTINATION ${LIB_INSTALL_DIR}/static
56 | )
57 |
58 | install(
59 |
--------------------------------------------------------------------------------
/rpms/fcitx/xinput-fcitx:
--------------------------------------------------------------------------------
1 | XIM=fcitx
2 | XIM_PROGRAM=/usr/bin/fcitx
3 | ICON="/usr/share/pixmaps/fcitx.png"
4 | XIM_ARGS="-D"
5 | PREFERENCE_PROGRAM=/usr/bin/fcitx-configtool
6 | SHORT_DESC="FCITX"
7 | GTK_IM_MODULE=fcitx
8 | if test -f /usr/lib*/qt4/plugins/inputmethods/qtim-fcitx.so || \
9 | test -f /usr/lib*/qt5/plugins/platforminputcontexts/libfcitx*.so;
10 | then
11 | QT_IM_MODULE=fcitx
12 | else
13 | QT_IM_MODULE=xim
14 | fi
15 |
--------------------------------------------------------------------------------
/rpms/fdk-aac/fdk-aac.spec:
--------------------------------------------------------------------------------
1 | Name: fdk-aac
2 | Version: 0.1.5
3 | Release: 1%{?dist}
4 | Summary: Fraunhofer FDK AAC Codec Library
5 | License: Apache License v2.0
6 | URL: http://sourceforge.net/projects/opencore-amr
7 | Source0: https://github.com/mstorsjo/fdk-aac/archive/v%{version}/%{name}-%{version}.tar.gz
8 |
9 | BuildRequires: pkgconfig
10 | BuildRequires: libtool
11 |
12 | %description
13 | The Fraunhofer FDK AAC Codec Library ("FDK AAC Codec") is software that
14 | implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding
15 | scheme for digital audio.
16 |
17 | For further information, read:
18 | http://wiki.hydrogenaud.io/Fraunhofer_FDK_AAC
19 |
20 | %package devel
21 | Summary: Development files for %{name}
22 | Group: Development/Libraries
23 | Requires: %{name}%{?_isa} = %{version}-%{release}
24 |
25 | %description devel
26 | The %{name}-devel package contains libraries and header files for
27 | developing applications that use %{name}.
28 |
29 | %prep
30 | %setup -q
31 |
32 | %build
33 | libtoolize
34 | aclocal
35 | automake --add-missing
36 | autoreconf --verbose
37 | %configure --enable-shared --disable-static
38 | # make gcc5/gcc6 happy
39 | make CXXFLAGS='%{optflags} -std=c++11 -Wno-narrowing' V=1 %{?_smp_mflags}
40 |
41 | %install
42 | %make_install
43 | find %{buildroot} -type f -name '*.la' -delete -print
44 |
45 | %post -p /sbin/ldconfig
46 |
47 | %postun -p /sbin/ldconfig
48 |
49 | %files
50 | %defattr(-,root,root,-)
51 | %doc ChangeLog NOTICE
52 | %{_libdir}/*.so.*
53 |
54 | %files devel
55 | %defattr(-,root,root,-)
56 | %doc documentation/*.pdf
57 | %dir %{_includedir}/fdk-aac
58 | %{_includedir}/fdk-aac/*.h
59 | %{_libdir}/*.so
60 | %{_libdir}/pkgconfig/%{name}.pc
61 |
62 | %changelog
63 | * Tue Jan 17 2017 mosquito - 0.1.5-1
64 | - Release 0.1.5
65 |
66 | * Tue May 24 2016 mosquito - 0.1.4-2
67 | - Rebuild for fedora 24
68 |
69 | * Tue Feb 23 2016 David Vásquez - 0.1.4-2
70 | - Rebuilt
71 |
72 | * Fri Oct 30 2015 David Vásquez - 0.1.4-1
73 | - Initial build
74 |
--------------------------------------------------------------------------------
/rpms/ffmpeg/ffmpeg.dead:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/rpms/ffmpeg/x265.dead:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/rpms/ffms2/ffms2.spec:
--------------------------------------------------------------------------------
1 | # https://github.com/RussianFedora/ffms2
2 |
3 | Name: ffms2
4 | Version: 2.23
5 | Release: 1%{?dist}
6 | License: MIT
7 | Summary: Wrapper library around libffmpeg
8 | URL: https://github.com/FFMS/ffms2
9 | Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
10 |
11 | BuildRequires: libtool
12 | BuildRequires: pkgconfig(libavformat)
13 | BuildRequires: pkgconfig(libavcodec)
14 | BuildRequires: pkgconfig(libswscale)
15 | BuildRequires: pkgconfig(libavutil)
16 | BuildRequires: zlib-devel
17 |
18 | %description
19 | FFmpegSource (usually known as FFMS or FFMS2) is a cross-platform wrapper
20 | library around libffmpeg, plus some additional components to deal with file
21 | formats libavformat has (or used to have) problems with.
22 |
23 | %package devel
24 | Summary: Development package for %{name}
25 | Requires: %{name}%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
26 |
27 | %description devel
28 | FFmpegSource (usually known as FFMS or FFMS2) is a cross-platform wrapper
29 | library around libffmpeg, plus some additional components to deal with file
30 | formats libavformat has (or used to have) problems with.
31 |
32 | %prep
33 | %autosetup
34 | sed -i 's/\r$//' COPYING
35 |
36 | %build
37 | autoreconf -vfi
38 | %configure --disable-static --disable-silent-rules
39 | %make_build
40 |
41 | %install
42 | %make_install
43 | rm %{buildroot}%{_libdir}/lib%{name}.la
44 | rm -rf %{buildroot}%{_docdir}
45 |
46 | %post -p /sbin/ldconfig
47 |
48 | %postun -p /sbin/ldconfig
49 |
50 | %files
51 | %license COPYING
52 | %doc README.md
53 | %{_bindir}/ffmsindex
54 | %{_libdir}/lib%{name}.so.*
55 |
56 | %files devel
57 | %doc doc/*
58 | %{_libdir}/lib%{name}.so
59 | %{_includedir}/ffms*
60 | %{_libdir}/pkgconfig/%{name}.pc
61 |
62 | %changelog
63 | * Sun Dec 11 2016 mosquito - 2.23-1
64 | - Update to 2.23
65 |
66 | * Tue Aug 30 2016 Igor Gnatenko - 2.22-3
67 | - Couple of trivial fixes
68 |
69 | * Tue Jun 14 2016 Arkady L. Shane - 2.2-2
70 | - rebuilt against new ffmpeg
71 |
72 | * Wed Nov 04 2015 Vasiliy N. Glazov 2.22-1
73 | - Update to 2.22
74 |
75 | * Sun Jun 28 2015 Ivan Epifanov - 2.21-1
76 | - Update to 2.21
77 |
78 | * Mon Jan 5 2015 Ivan Epifanov - 2.20-1
79 | - Update to 2.20
80 |
81 | * Fri Mar 28 2014 Ivan Epifanov - 2.19-1
82 | - Initial spec for Fedora
83 |
--------------------------------------------------------------------------------
/rpms/foxit/FoxitReader-excluded_files:
--------------------------------------------------------------------------------
1 | # glib2
2 | lib/libglib-2.0.so.0
3 | lib/libgobject-2.0.so.0
4 | lib/libgthread-2.0.so.0
5 |
6 | # gcc-libs
7 | lib/libstdc++.so.6
8 |
9 | # gstreamer0.10-base
10 | lib/libgstapp-0.10.so.0
11 | lib/libgstapp-0.10.so.0.25.0
12 | lib/libgstbase-0.10.so.0
13 | lib/libgstinterfaces-0.10.so.0
14 | lib/libgstinterfaces-0.10.so.0.25.0
15 | lib/libgstpbutils-0.10.so.0
16 | lib/libgstpbutils-0.10.so.0.25.0
17 | lib/libgstvideo-0.10.so.0
18 |
19 | # gst-plugins-base-libs
20 | lib/libgstpbutils-1.0.so.0
21 | lib/libgstpbutils-1.0.so.0.403.0
22 |
23 | # gstreamer0.10
24 | lib/libgstreamer-0.10.so.0
25 | lib/libgstreamer-0.10.so.0.30.0
26 |
27 | # libgcrypt
28 | lib/libgcrypt.so.11
29 |
30 | # openssl
31 | lib/libcrypto.so.10
32 | lib/libssl.so.10
33 |
34 | # libffi
35 | lib/libffi.so.5
36 |
37 | # libsecret
38 | lib/libsecret-1.so
39 | lib/libsecret-1.so.0
40 |
41 | # libxkbcommon
42 | lib/libxkbcommon.so.0
43 | lib/libxkbcommon.so.0.0.0
44 |
45 | # libxslt
46 | lib/libxslt.so.1
47 | lib/libxslt.so.1.1
48 | lib/libxslt.so.1.1.26
49 |
50 |
51 |
--------------------------------------------------------------------------------
/rpms/foxit/FoxitReader.patch:
--------------------------------------------------------------------------------
1 | diff -Naur foxitreader.orig/FoxitReader.desktop foxitreader/FoxitReader.desktop
2 | --- foxitreader.orig/FoxitReader.desktop 2018-02-13 18:54:39.000000000 +0100
3 | +++ foxitreader/FoxitReader.desktop 2018-10-28 16:55:01.954090619 +0100
4 | @@ -1,10 +1,12 @@
5 | [Desktop Entry]
6 | Name=Foxit Reader
7 | -Comment=View pdf documents
8 | +Comment=View PDF documents
9 | Keywords=pdf;ppdf;
10 | StartupNotify=true
11 | Terminal=false
12 | Type=Application
13 | Categories=Application;Office;Viewer;X-Red-Hat-Base;
14 | MimeType=application/pdf;application/ppdf;
15 | -Icon=FoxitReader
16 | +Icon=foxitreader
17 | +Exec=foxitreader %F
18 | +
19 | diff -Naur foxitreader.orig/FoxitReader.sh foxitreader/FoxitReader.sh
20 | --- foxitreader.orig/FoxitReader.sh 2018-02-13 16:57:48.000000000 +0100
21 | +++ foxitreader/FoxitReader.sh 2018-10-28 16:54:35.792773802 +0100
22 | @@ -1,3 +1,5 @@
23 | #!/bin/sh
24 | - appname="FoxitReader"
25 | -
26 | +appname="FoxitReader"
27 | +selfpath="$(dirname $(readlink -f "$0"))"
28 | +export LD_LIBRARY_PATH="${selfpath}/lib:${selfpath}/platforms:${selfpath}/printsupport:${selfpath}/rmssdk:${selfpath}/sensors:${selfpath}/imageformats:${selfpath}/platforminputcontexts"
29 | +exec "${selfpath}/${appname}" "$@"
30 |
31 |
--------------------------------------------------------------------------------
/rpms/foxit/qt-installer-framework-rename-fails.patch:
--------------------------------------------------------------------------------
1 | diff --git a/src/libs/installer/binaryformat.h b/src/libs/installer/binaryformat.h
2 | index b3c76c9..aec31b7 100644
3 | --- a/src/libs/installer/binaryformat.h
4 | +++ b/src/libs/installer/binaryformat.h
5 | @@ -81,7 +81,7 @@ private:
6 | void setOpenMode(OpenMode mode) { QIODevice::setOpenMode(mode); }
7 |
8 | private:
9 | - QFSFileEngine m_file;
10 | + QFile m_file;
11 | QByteArray m_name;
12 | Range m_segment;
13 | };
14 | diff --git a/tools/binarycreator/binarycreator.cpp b/tools/binarycreator/binarycreator.cpp
15 | index 78eb04d..4c90454 100644
16 | --- a/tools/binarycreator/binarycreator.cpp
17 | +++ b/tools/binarycreator/binarycreator.cpp
18 | @@ -461,7 +461,7 @@ static int assemble(Input input, const QInstaller::Settings &settings, const QSt
19 | return EXIT_FAILURE;
20 | }
21 |
22 | - if (!out.rename(targetName)) {
23 | + if (!out.QFile::rename(targetName)) {
24 | qCritical("Cannot write installer to %s: %s", targetName.toUtf8().constData(),
25 | out.errorString().toUtf8().constData());
26 | QFile::remove(tempFile);
27 |
--------------------------------------------------------------------------------
/rpms/foxit/qt-installer-framework.spec:
--------------------------------------------------------------------------------
1 | %global tgzname %{name}-opensource-src-%{version}
2 |
3 | Name: qt-installer-framework
4 | Version: 3.0.6
5 | Release: 1%{?dist}
6 | Summary: The Qt Installer Framework used for the Qt SDK installer
7 | License: GPLv3 and FDL
8 | URL: http://wiki.qt.io/Qt-Installer-Framework
9 | Source0: http://download.qt.io/official_releases/%{name}/%{version}/%{tgzname}.tar.gz
10 | Patch0: %{name}-rename-fails.patch
11 |
12 | BuildRequires: gcc-c++
13 | BuildRequires: pkgconfig(Qt5Core)
14 | BuildRequires: pkgconfig(Qt5UiTools)
15 | BuildRequires: pkgconfig(Qt5Quick)
16 | BuildRequires: qt5-qtdoc
17 | BuildRequires: qt5-doctools
18 | BuildRequires: qt5-qtbase-doc
19 | BuildRequires: qt5-qtdeclarative-doc
20 |
21 | %description
22 | The Qt Installer Framework provides a set of tools and utilities to
23 | create installers for the supported desktop Qt platforms: Linux,
24 | Microsoft Windows, and Mac OS X.
25 |
26 | The Qt Installer Framework is used e.g. for the Qt SDK installers,
27 | and Qt Creator installer.
28 |
29 | %package doc
30 | Summary: Documentation for %{name}
31 | BuildArch: noarch
32 |
33 | %description doc
34 | Documentation for %{name}.
35 |
36 | %package examples
37 | Summary: Examples for %{name}
38 | BuildArch: noarch
39 | Requires: %{name}%{?_isa} = %{version}-%{release}
40 |
41 | %description examples
42 | Examples for %{name}.
43 |
44 | %prep
45 | %setup -q -c %{name}
46 | %patch0 -p1 -b .rename_fails
47 |
48 | %build
49 | %qmake_qt5
50 | %make_build
51 | make docs
52 |
53 | %install
54 | %make_install INSTALL_ROOT=%{buildroot}
55 |
56 | install -d %{buildroot}%{_bindir}
57 | for bin in archivegen binarycreator devtool repogen; do
58 | ln -s ../%{_lib}/qt5/bin/${bin} %{buildroot}%{_bindir}/${bin}-qt5
59 | done
60 |
61 | install -Dm644 doc/ifw.qch %{buildroot}%{_qt5_docdir}/ifw.qch
62 | cp -r doc/html %{buildroot}%{_qt5_docdir}/ifw
63 |
64 | install -d %{buildroot}%{_qt5_examplesdir}
65 | cp -r examples %{buildroot}%{_qt5_examplesdir}/ifw
66 |
67 | rm -f %{buildroot}%{_libdir}/*.a
68 |
69 | %check
70 | bin="../../bin"
71 | pushd examples/tutorial
72 | $bin/archivegen --verbose -c9 TestInstaller.7z config packages
73 | $bin/binarycreator -v -c config/config.xml -p packages TestInstaller
74 | $bin/devtool dump TestInstaller output ||:
75 | $bin/installerbase --version
76 | $bin/repogen -v -p TestInstaller repository
77 |
78 | %files
79 | %license LICENSE.FDL LICENSE.GPL3*
80 | %doc Changelog README
81 | %{_bindir}/*qt5
82 | %{_qt5_bindir}/archivegen
83 | %{_qt5_bindir}/binarycreator
84 | %{_qt5_bindir}/devtool
85 | %{_qt5_bindir}/installerbase
86 | %{_qt5_bindir}/repogen
87 |
88 | %files examples
89 | %{_qt5_examplesdir}/ifw/
90 |
91 | %files doc
92 | %{_qt5_docdir}/ifw/
93 | %{_qt5_docdir}/ifw.qch
94 |
95 | %changelog
96 | * Thu Dec 20 2018 mosquito - 3.0.6-1
97 | - Release 3.0.6
98 |
99 | * Thu May 26 2016 mosquito - 2.0.3-1
100 | - Release 2.0.3
101 |
102 | * Wed Dec 23 2015 mosquito - 2.0.1-1
103 | - Initial build
--------------------------------------------------------------------------------
/rpms/gmediarender/gmediarender.obsoleted:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %global project gmrender-resurrect
3 | %global repo %{project}
4 |
5 | # commit
6 | %global _commit 400361649f3d540c08001c0ad68222388e65be67
7 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
8 |
9 | Name: gmediarender
10 | Version: 0.0.7
11 | Release: 1.git%{_shortcommit}%{?dist}
12 | Summary: Resource efficient UPnP/DLNA renderer
13 |
14 | License: LGPLv2+
15 | URL: http://github.com/hzeller/gmrender-resurrect
16 | Source0: http://github.com/hzeller/gmrender-resurrect/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
17 |
18 | BuildRequires: systemd
19 | BuildRequires: automake
20 | BuildRequires: libupnp-devel
21 | BuildRequires: gstreamer1-devel
22 |
23 | Requires: gstreamer1-plugins-ugly
24 | Requires: gstreamer1-plugins-bad-free
25 | Requires: gstreamer1-plugins-base
26 | Requires: gstreamer1-plugins-good
27 | Requires(pre): shadow-utils
28 | %{?systemd_requires}
29 |
30 | %description
31 | GMediaRender is a resource efficient UPnP/DLNA renderer.
32 |
33 | %prep
34 | %setup -q -n %repo-%{_commit}
35 | autoreconf -vfi
36 |
37 | %build
38 | %configure
39 | make %{?_smp_mflags}
40 |
41 | %install
42 | install -d %{buildroot}%{_bindir}
43 | install -m 0755 src/%{name} %{buildroot}%{_bindir}
44 |
45 | install -d %{buildroot}%{_datadir}/%{name}
46 | install -m 0644 data/grender-*.png %{buildroot}%{_datadir}/%{name}
47 |
48 | install -d %{buildroot}%{_unitdir}
49 | install -m 0644 dist-scripts/fedora/%{name}.service %{buildroot}%{_unitdir}
50 |
51 | install -d %{buildroot}/usr/lib/firewalld/services
52 | install -m 0644 dist-scripts/fedora/*.xml %{buildroot}/usr/lib/firewalld/services
53 |
54 | %pre
55 | getent group %{name} &>/dev/null || groupadd -r %{name}
56 | getent passwd %{name} &>/dev/null || \
57 | useradd -r -g %{name} -G audio -M -d %{_datadir}/%{name} -s /sbin/nologin \
58 | -c "GMediaRender DLNA/UPnP Renderer" %{name}
59 |
60 | %post
61 | %systemd_post %{name}.service
62 | %firewalld_reload
63 |
64 | %preun
65 | %systemd_preun %{name}.service
66 |
67 | %postun
68 | %systemd_postun_with_restart %{name}.service
69 | if [ $1 -eq 0 ]; then
70 | getent passwd %{name} &>/dev/null && userdel %{name}
71 | getent group %{name} &>/dev/null && groupdel %{name}
72 | fi
73 |
74 | %files
75 | %defattr(-,root,root,-)
76 | %doc README.md
77 | %license COPYING
78 | %{_bindir}/%{name}
79 | %dir %{_datadir}/%{name}
80 | %{_datadir}/%{name}/grender-*.png
81 | %config(noreplace) %{_unitdir}/%{name}.service
82 | /usr/lib/firewalld/services/%{name}.xml
83 | /usr/lib/firewalld/services/ssdp.xml
84 |
85 | %changelog
86 | * Thu Jan 28 2016 mosquito - 0.0.7-1.git4003616
87 | - Build for Fedora23
88 | * Sun Mar 29 2015
89 | - Updated for systemd snippets, added automatic system user/group add
90 | and removal upon installation, added FirewallD support
91 | * Mon Sep 16 2013
92 | - Initial release
93 |
--------------------------------------------------------------------------------
/rpms/gn/fix-version.patch:
--------------------------------------------------------------------------------
1 | diff --git a/build/gen.py b/build/gen.py
2 | index d547a8ff..53c332ad 100755
3 | --- a/build/gen.py
4 | +++ b/build/gen.py
5 | @@ -118,13 +118,7 @@ def main(argv):
6 |
7 | def GenerateLastCommitPosition(host, header):
8 | ROOT_TAG = 'initial-commit'
9 | - describe_output = subprocess.check_output(
10 | - ['git', 'describe', 'HEAD', '--match', ROOT_TAG], shell=host.is_windows(),
11 | - cwd=REPO_ROOT)
12 | - mo = re.match(ROOT_TAG + '-(\d+)-g([0-9a-f]+)', describe_output.decode())
13 | - if not mo:
14 | - raise ValueError(
15 | - 'Unexpected output from git describe when generating version header')
16 | + mo=["1559","78db9de5"]
17 |
18 | contents = '''// Generated by build/gen.py.
19 |
20 | @@ -134,7 +128,7 @@ def GenerateLastCommitPosition(host, header):
21 | #define LAST_COMMIT_POSITION "%s (%s)"
22 |
23 | #endif // OUT_LAST_COMMIT_POSITION_H_
24 | -''' % (mo.group(1), mo.group(2))
25 | +''' % (mo[0], mo[1])
26 |
27 | # Only write/touch this file if the commit position has changed.
28 | old_contents = ''
29 |
30 |
--------------------------------------------------------------------------------
/rpms/gn/gn.spec:
--------------------------------------------------------------------------------
1 | %global commit 78db9de5aed44f03763176ac6067fb1a73798684
2 | %global shortcommit %(c=%{commit}; echo ${c:0:7})
3 |
4 | Name: gn
5 | Version: 0
6 | Release: 1.1559git%{shortcommit}%{?dist}
7 | Summary: A meta-build system that generates build files for Ninja.
8 |
9 | License: 3-Clause BSD License
10 | URL: https://gn.googlesource.com/gn
11 | Source0: https://gn.googlesource.com/gn/+archive/%{commit}.tar.gz
12 | Patch0: fix-version.patch
13 |
14 | BuildRequires: gcc gcc-c++
15 | BuildRequires: libstdc++-static
16 | BuildRequires: ninja-build python
17 |
18 | %description
19 | GN is a meta-build system that generates build files for Ninja.
20 |
21 | %prep
22 | %autosetup -p1 -n gn-%{commit}
23 |
24 |
25 | %build
26 |
27 | export CC=/usr/bin/gcc
28 | export CXX=/usr/bin/g++
29 | export AR=/usr/bin/ar
30 |
31 | python build/gen.py
32 | ninja -C out
33 |
34 | %install
35 | rm -rf $RPM_BUILD_ROOT
36 | mkdir -p %{buildroot}%{_bindir}/gn
37 | install -m644 out/gn %{buildroot}%{_bindir}/gn
38 |
39 | %clean
40 | rm -rf %{buildroot}
41 |
42 | %post -p /sbin/ldconfig
43 |
44 | %postun -p /sbin/ldconfig
45 |
46 | %files
47 | %defattr(-,root,root,-)
48 | %license LICENSE
49 | %{_bindir}/gn
50 |
51 |
52 | %changelog
53 | * Thu Apr 18 2019 Bangjie Deng - 1559-1.git78db9de5
54 | - Package init.
55 |
56 |
57 |
--------------------------------------------------------------------------------
/rpms/grub4dos/grub4dos-help-2015-02-09.chm:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/rpms/grub4dos/grub4dos-help-2015-02-09.chm
--------------------------------------------------------------------------------
/rpms/grub4dos/unifont.hex.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/rpms/grub4dos/unifont.hex.gz
--------------------------------------------------------------------------------
/rpms/grumpy/grumpy.spec:
--------------------------------------------------------------------------------
1 | # https://aur.archlinux.org/packages/grumpy-git
2 | %global debug_package %{nil}
3 | %global project grumpy
4 | %global repo %{project}
5 |
6 | %global _commit 47e0e02297d6a43f8e9cb062e041802f93e4b09b
7 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
8 |
9 | %global goarch %(go env GOHOSTARCH)
10 | %global goroot %(go env GOROOT)
11 | %global gopkgdir %{goroot}/pkg/linux_%{goarch}
12 |
13 | Name: grumpy
14 | Version: 0.0.1
15 | Release: 1.git%{_shortcommit}%{?dist}
16 | Summary: a Python to Go source code transcompiler and runtime
17 | License: Apache 2.0
18 | URL: https://github.com/google/grumpy
19 | Source0: %{url}/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
20 |
21 | BuildRequires: python-devel
22 | BuildRequires: golang-bin
23 | Requires: golang
24 |
25 | %description
26 | Grumpy is a Python to Go source code transcompiler and runtime.
27 |
28 | %prep
29 | %setup -q -n %{repo}-%{_commit}
30 |
31 | sed -i 's|@python|@python2|; s|@pip|@pip2|' Makefile
32 | sed -i '1s|python|python2|' tools/*
33 |
34 | %build
35 | make
36 | find . -name "*.d" -delete
37 |
38 | %install
39 | pushd build
40 | install -d %{buildroot}%{goroot}
41 | cp -rv bin lib %{buildroot}%{_prefix}/
42 | cp -rv pkg src %{buildroot}%{goroot}/
43 | popd
44 |
45 | cp -rv tools/* %{buildroot}%{_bindir}/
46 |
47 | %check
48 | make test
49 |
50 | %files
51 | %defattr(-,root,root,-)
52 | %doc README.md
53 | %{_bindir}/benchcmp
54 | %{_bindir}/coverparse
55 | %{_bindir}/diffrange
56 | %{_bindir}/grumpc
57 | %{_bindir}/grumprun
58 | %{python_sitelib}/%{name}/
59 | %{gopkgdir}/%{name}/
60 | %{gopkgdir}/%{name}.a
61 | %{goroot}/src/%{name}/
62 |
63 | %changelog
64 | * Sun Jan 8 2017 mosquito - 0.0.1-1.git47e0e02
65 | - Initial build
66 |
--------------------------------------------------------------------------------
/rpms/ircd-hybrid/Makefile:
--------------------------------------------------------------------------------
1 | TARGET?=$(shell ls *.te)
2 | SHAREDIR?=/usr/share
3 | #MODULE?=${TARGETS:=.pp.bz2}
4 | #INSTALL=?=install
5 |
6 | all: cil pp
7 | cil: ${TARGET:%.te=%.cil}
8 | pp: ${TARGET:%.te=%.pp.bz2}
9 |
10 | %.pp.bz2: %.pp
11 | @echo Compressing $^ -\> $@; \
12 | bzip2 -f -9 $^
13 |
14 | %.cil: %.pp
15 | @if [ -x /usr/libexec/selinux/hll/pp ]; then \
16 | echo Converting $^ -\> $@; \
17 | cat $^ | /usr/libexec/selinux/hll/pp > $@; \
18 | echo Compressing $@ -\> $@.bz2; \
19 | bzip2 -f -9 $@; \
20 | fi
21 |
22 | %.pp: %.te
23 | make -f ${SHAREDIR}/selinux/devel/Makefile $@
24 |
25 | clean:
26 | rm -rf tmp *.cil *.pp *.bz2
27 |
28 | #install:
29 | #AWK${INSTALL} -m 0644 ${TARGET} \
30 | #gawk${DESTDIR}${SHAREDIR}/targeted/modules
31 |
--------------------------------------------------------------------------------
/rpms/ircd-hybrid/fhs_comply.patch:
--------------------------------------------------------------------------------
1 | From 832ef51a1bc127e176da67a1959c787dfbb66ecd Mon Sep 17 00:00:00 2001
2 | From: Dominic Hargreaves
3 | Date: Sat, 12 Jan 2013 00:24:56 +0000
4 | Subject: Adjust paths for Debian/FHS
5 |
6 | Forwarded: not-needed
7 | Patch-Name: fhs_comply.patch
8 | ---
9 | include/defaults.h | 14 +++++++-------
10 | src/Makefile.am | 2 +-
11 | 2 files changed, 8 insertions(+), 8 deletions(-)
12 |
13 | diff --git a/include/defaults.h b/include/defaults.h
14 | index 3d722ef..2df3c49 100644
15 | --- a/include/defaults.h
16 | +++ b/include/defaults.h
17 | @@ -50,25 +50,25 @@
18 |
19 | /* dirs */
20 | #define DPATH PREFIX
21 | -#define BINPATH PREFIX "/bin/"
22 | +#define SBINPATH PREFIX "/sbin/"
23 | #define MODPATH LIBDIR "/" PACKAGE "/modules/"
24 | #define HPATH DATADIR "/" PACKAGE "/help"
25 | #define AUTOMODPATH MODPATH "/autoload/"
26 | #define ETCPATH SYSCONFDIR
27 | -#define LIBPATH LOCALSTATEDIR "/lib"
28 | -#define LOGPATH LOCALSTATEDIR "/log"
29 | -#define RUNPATH LOCALSTATEDIR "/run"
30 | +#define LIBPATH LOCALSTATEDIR "/lib/ircd-hybrid"
31 | +#define LOGPATH LOCALSTATEDIR "/log/ircd"
32 | +#define RUNPATH LOCALSTATEDIR "/run/ircd"
33 |
34 | /* files */
35 | -#define SPATH BINPATH "/ircd" /* ircd executable */
36 | +#define SPATH SBINPATH "/ircd" /* ircd executable */
37 | #define CPATH ETCPATH "/ircd.conf" /* ircd.conf file */
38 | #define KPATH LIBPATH "/kline.db" /* kline file */
39 | #define RESVPATH LIBPATH "/resv.db" /* resv file */
40 | #define DLPATH LIBPATH "/dline.db" /* dline file */
41 | #define XPATH LIBPATH "/xline.db" /* xline file */
42 | #define MPATH ETCPATH "/ircd.motd" /* MOTD file */
43 | -#define LPATH LOGPATH "/ircd.log" /* ircd logfile */
44 | -#define PPATH RUNPATH "/ircd.pid" /* pid file */
45 | +#define LPATH LOGPATH "/ircd-hybrid.log" /* ircd logfile */
46 | +#define PPATH RUNPATH "/ircd-hybrid.pid" /* pid file */
47 |
48 | /*
49 | * This file is included to supply default values for things which
50 | diff --git a/src/Makefile.am b/src/Makefile.am
51 | index 5ffb12a..8549317 100644
52 | --- a/src/Makefile.am
53 | +++ b/src/Makefile.am
54 | @@ -1,6 +1,6 @@
55 | AUTOMAKE_OPTIONS = foreign
56 |
57 | -bin_PROGRAMS = ircd
58 | +sbin_PROGRAMS = ircd
59 |
60 | AM_YFLAGS = -d
61 |
62 |
--------------------------------------------------------------------------------
/rpms/ircd-hybrid/ircd-hybrid-tmpfiles.conf:
--------------------------------------------------------------------------------
1 | d /run/ircd-hybrid 0755 ircd-hybrid ircd-hybrid -
2 |
--------------------------------------------------------------------------------
/rpms/ircd-hybrid/ircd-hybrid.fc:
--------------------------------------------------------------------------------
1 | # ircd-hybrid labeling policy
2 | /usr/sbin/ircd-hybrid -- gen_context(system_u:object_r:ircd_hybrid_exec_t,s0)
3 | /etc/ircd-hybrid(/.*)? gen_context(system_u:object_r:ircd_hybrid_conf_t,s0)
4 | /var/lib/ircd-hybrid(/.*)? gen_context(system_u:object_r:ircd_hybrid_var_lib_t,s0)
5 | /var/log/ircd-hybrid(/.*)? gen_context(system_u:object_r:ircd_hybrid_log_t,s0)
6 | /var/run/ircd-hybrid(/.*)? gen_context(system_u:object_r:ircd_hybrid_var_run_t,s0)
7 |
--------------------------------------------------------------------------------
/rpms/ircd-hybrid/ircd-hybrid.if:
--------------------------------------------------------------------------------
1 | ## IRC Hybrid daemon
2 | ##
3 | ##
4 | ## IRC Hybrid daemon.
5 | ##
6 | ##
7 | ## This policy supports the following features:
8 | ##
9 | ## - ircd_hybrid_read_log
10 | ##
11 | ##
12 | ##
13 | #
14 |
15 | ########################################
16 | ##
17 | ## Read IRC daemon log files.
18 | ##
19 | ##
20 | ##
21 | ## Domain allowed to read the log files.
22 | ##
23 | ##
24 | #
25 | interface(`ircd_hybrid_read_log',`
26 | gen_require(`
27 | type ircd_hybrid_log_t;
28 | ')
29 |
30 | logging_search_logs($1)
31 | allow $1 ircd_hybrid_log_t:file read_file_perms;
32 | ')
33 |
--------------------------------------------------------------------------------
/rpms/ircd-hybrid/ircd-hybrid.init:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | #
3 | # ircd-hybrid This shell script takes care of starting and stopping ircd.
4 | #
5 | # chkconfig: - 75 25
6 | # description: Internet Relay Chat Server.
7 | #
8 |
9 | # Source function library.
10 | . /etc/rc.d/init.d/functions
11 |
12 | # Source networking configuration.
13 | . /etc/sysconfig/network
14 |
15 | # Check that networking is up.
16 | [ ${NETWORKING} = "no" ] && exit 0
17 |
18 | OPTIONS=""
19 | prog=ircd
20 |
21 | # Get service config
22 | [ -f /etc/sysconfig/ircd-hybrid ] && . /etc/sysconfig/ircd-hybrid
23 |
24 |
25 | start() {
26 | echo -n $"Starting $prog: "
27 | daemon --user ircd-hybrid $prog $OPTIONS
28 | RETVAL=$?
29 | echo
30 | [ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
31 | }
32 |
33 | stop() {
34 | echo -n $"Stopping $prog: "
35 | killproc $prog
36 | RETVAL=$?
37 | echo
38 | [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog /var/run/ircd-hybrid/ircd.pid
39 | }
40 |
41 | reload() {
42 | echo -n $"Reloading $prog: "
43 | killproc $prog -HUP
44 | RETVAL=$?
45 | echo
46 | }
47 |
48 | # See how we were called.
49 | case "$1" in
50 | start)
51 | start
52 | ;;
53 | stop)
54 | stop
55 | ;;
56 | status)
57 | status $prog
58 | RETVAL=$?
59 | ;;
60 | restart)
61 | stop
62 | start
63 | ;;
64 | condrestart)
65 | if [ -f /var/lock/subsys/$prog ]; then
66 | stop
67 | start
68 | fi
69 | ;;
70 | reload)
71 | reload
72 | ;;
73 | *)
74 | echo $"Usage: $prog {start|stop|restart|condrestart|reload|status"
75 | exit 1
76 | esac
77 |
78 | exit $RETVAL
79 |
--------------------------------------------------------------------------------
/rpms/ircd-hybrid/ircd-hybrid.logrotate:
--------------------------------------------------------------------------------
1 | /var/log/ircd-hybrid/*.log {
2 | monthly
3 | rotate 4
4 | notifempty
5 | compress
6 | }
7 |
--------------------------------------------------------------------------------
/rpms/ircd-hybrid/ircd-hybrid.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=Internet Relay Chat Server
3 | After=network.target
4 |
5 | [Service]
6 | User=ircd-hybrid
7 | Type=forking
8 | PIDFile=/run/ircd-hybrid/ircd.pid
9 | ExecStart=/usr/sbin/ircd-hybrid \
10 | -configfile /etc/ircd-hybrid/ircd.conf \
11 | -pidfile /run/ircd-hybrid/ircd.pid
12 |
13 | [Install]
14 | WantedBy=multi-user.target
15 |
--------------------------------------------------------------------------------
/rpms/ircd-hybrid/ircd-hybrid.sysconfig:
--------------------------------------------------------------------------------
1 | # Extra command-line options
2 | #OPTIONS=
3 |
4 |
--------------------------------------------------------------------------------
/rpms/ircd-hybrid/ircd.motd:
--------------------------------------------------------------------------------
1 | /:-------------:\ ircd-hybrid 8.2
2 | :------------------:: ---------------
3 | :-----------/shhOHbmp--:\
4 | /-----------omMMMNNNMMD --:
5 | :-----------sMMMMNMNMP. --: If you are seeing this, you have
6 | :-----------:MMMdP------- --\ installed the ircd-hybrid package and
7 | ,------------:MMMd-------- --: you are now connected to your new IRC
8 | :------------:MMMd------- .--: server -- congratulations.
9 | :---- oNMMMMMMMMMNho .---:
10 | :-- .+shhhMMMmhhy++ .-----/ Since you have just installed the
11 | :- -------:MMMd-------------: package, there are some things you
12 | :- --------/MMMd------------; should do before going any further:
13 | :- ------/hMMMy-----------:
14 | :-- :dMNdhhdNMMNo-----------; 1. Edit /etc/ircd-hybrid/ircd.conf to
15 | :---:sdNMMMMNds:-----------: suit your needs. Beware some options have
16 | :------:://:------------:: been removed or moved into other blocks in
17 | :--------------------:// the configuration file since
18 | ircd-hybrid 7.2.2.
19 |
20 | 2. Edit /etc/ircd-hybrid/ircd.motd (this
21 | MOTD) to suit your needs.
22 |
23 | 3. Restart the server using "systemctl
24 | restart ircd-hybrid".
25 |
--------------------------------------------------------------------------------
/rpms/isatapd/isatapd.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 |
3 | Name: isatapd
4 | Version: 0.9.7
5 | Release: 1%{?dist}
6 | Summary: ISATAP client for Linux
7 | Group: System Environment/Daemons
8 | License: GPLv2
9 | URL: http://www.saschahlusiak.de/linux/isatap.htm
10 | Source0: http://www.saschahlusiak.de/linux/%{name}-%{version}.tar.gz
11 |
12 | %description
13 | isatapd creates and maintains an ISATAP tunnel (rfc5214) in Linux.
14 |
15 | It uses the in-kernel ISATAP support first introduced in linux-2.6.25.
16 | It does NOT operate the tunnel or handle any IPv6 traffic other than
17 | router solicitations and router advertisements.
18 |
19 | %prep
20 | %setup -q
21 |
22 | %build
23 | %configure
24 | %make_build
25 |
26 | %install
27 | %make_install
28 |
29 | %files
30 | %license COPYING
31 | %doc README ChangeLog
32 | %{_sbindir}/%{name}
33 | %{_mandir}/man8/%{name}.8.*
34 |
35 | %changelog
36 | * Thu Jun 16 2016 Zhenbo Li - 0.9.7-1
37 | - Initial build
38 |
--------------------------------------------------------------------------------
/rpms/kubernetes_for_quick_deploy/kubeadm.conf:
--------------------------------------------------------------------------------
1 | [Service]
2 | Environment="KUBELET_KUBECONFIG_ARGS=--kubeconfig=/etc/kubernetes/kubelet.conf --require-kubeconfig=true"
3 | Environment="KUBELET_SYSTEM_PODS_ARGS=--pod-manifest-path=/etc/kubernetes/manifests --allow-privileged=true"
4 | Environment="KUBELET_NETWORK_ARGS=--network-plugin=cni --cni-conf-dir=/etc/cni/net.d --cni-bin-dir=/usr/libexec/cni"
5 | Environment="KUBELET_DNS_ARGS=--cluster-dns=10.96.0.10 --cluster-domain=cluster.local"
6 | Environment="KUBELET_AUTHZ_ARGS=--authorization-mode=Webhook --client-ca-file=/etc/kubernetes/pki/ca.crt"
7 | Environment="KUBELET_EXTRA_ARGS=--cgroup-driver=systemd"
8 | ExecStart=
9 | ExecStart=/usr/bin/kubelet $KUBELET_KUBECONFIG_ARGS $KUBELET_SYSTEM_PODS_ARGS $KUBELET_NETWORK_ARGS $KUBELET_DNS_ARGS $KUBELET_AUTHZ_ARGS $KUBELET_EXTRA_ARGS
10 |
--------------------------------------------------------------------------------
/rpms/kubernetes_for_quick_deploy/kubernetes-accounting.conf:
--------------------------------------------------------------------------------
1 | [Manager]
2 | DefaultCPUAccounting=yes
3 | DefaultMemoryAccounting=yes
4 |
5 |
--------------------------------------------------------------------------------
/rpms/kwplayer/01_cairo_region.patch:
--------------------------------------------------------------------------------
1 | From 132daac42d49e14686b05e8dad64b3652084d240 Mon Sep 17 00:00:00 2001
2 | From: Shyouzou Sugitani
3 | Date: Wed, 13 Jun 2012 23:44:11 +0900
4 | Subject: [PATCH] add a foreign type for cairo_region_t.
5 |
6 | * the patch in https://bugs.freedesktop.org/show_bug.cgi?id=44336
7 | is required for pycairo
8 |
9 | Bug: https://bugzilla.gnome.org/show_bug.cgi?id=667959
10 | Bug-Ubuntu: https://launchpad.net/bugs/1028115
11 | ---
12 | gi/pygi-foreign-cairo.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
13 | 1 file changed, 44 insertions(+)
14 |
15 | Index: pygobject/gi/pygi-foreign-cairo.c
16 | ===================================================================
17 | --- pygobject.orig/gi/pygi-foreign-cairo.c
18 | +++ pygobject/gi/pygi-foreign-cairo.c
19 | @@ -368,6 +368,46 @@ cairo_pattern_from_gvalue (const GValue
20 | }
21 |
22 |
23 | +#if PY_VERSION_HEX >= 0x03000000
24 | +static PyObject *
25 | +cairo_region_to_arg (PyObject *value,
26 | + GIInterfaceInfo *interface_info,
27 | + GITransfer transfer,
28 | + GIArgument *arg)
29 | +{
30 | + cairo_region_t *region;
31 | +
32 | + g_assert (transfer == GI_TRANSFER_NOTHING);
33 | +
34 | + region = ( (PycairoRegion*) value)->region;
35 | + if (!region) {
36 | + PyErr_SetString (PyExc_ValueError, "Region instance wrapping a NULL region");
37 | + return NULL;
38 | + }
39 | +
40 | + arg->v_pointer = region;
41 | + Py_RETURN_NONE;
42 | +}
43 | +
44 | +static PyObject *
45 | +cairo_region_from_arg (GIInterfaceInfo *interface_info, gpointer data)
46 | +{
47 | + cairo_region_t *region = (cairo_region_t*) data;
48 | +
49 | + cairo_region_reference (region);
50 | +
51 | + return PycairoRegion_FromRegion (region);
52 | +}
53 | +
54 | +static PyObject *
55 | +cairo_region_release (GIBaseInfo *base_info,
56 | + gpointer struct_)
57 | +{
58 | + cairo_region_destroy ( (cairo_region_t*) struct_);
59 | + Py_RETURN_NONE;
60 | +}
61 | +#endif
62 | +
63 | static PyMethodDef _gi_cairo_functions[] = { {0,} };
64 | PYGLIB_MODULE_START(_gi_cairo, "_gi_cairo")
65 | {
66 | @@ -406,6 +446,14 @@ PYGLIB_MODULE_START(_gi_cairo, "_gi_cair
67 | cairo_font_options_from_arg,
68 | cairo_font_options_release);
69 |
70 | +#if PY_VERSION_HEX >= 0x03000000
71 | + pygi_register_foreign_struct ("cairo",
72 | + "Region",
73 | + cairo_region_to_arg,
74 | + cairo_region_from_arg,
75 | + cairo_region_release);
76 | +#endif
77 | +
78 | pyg_register_gtype_custom (CAIRO_GOBJECT_TYPE_CONTEXT,
79 | cairo_context_from_gvalue,
80 | cairo_context_to_gvalue);
81 |
--------------------------------------------------------------------------------
/rpms/kwplayer/cairo-waf-use-python-config-as-shell-script.patch:
--------------------------------------------------------------------------------
1 | --- .waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Tools/python.py.orig 2014-05-12 12:36:46.776004776 +0200
2 | +++ .waf3-1.6.4-e3c1e08604b18a10567cfcd2d02eb6e6/waflib/Tools/python.py 2014-05-12 12:36:53.994995779 +0200
3 | @@ -169,7 +169,7 @@
4 | conf.find_program('python-config-%s'%num,var='PYTHON_CONFIG',mandatory=False)
5 | includes=[]
6 | if conf.env.PYTHON_CONFIG:
7 | - for incstr in conf.cmd_and_log(conf.env.PYTHON+[conf.env.PYTHON_CONFIG,'--includes']).strip().split():
8 | + for incstr in conf.cmd_and_log([conf.env.PYTHON_CONFIG,'--includes']).strip().split():
9 | if(incstr.startswith('-I')or incstr.startswith('/I')):
10 | incstr=incstr[2:]
11 | if incstr not in includes:
12 |
--------------------------------------------------------------------------------
/rpms/kwplayer/pycairo-1.10.0-test-python3.patch:
--------------------------------------------------------------------------------
1 | diff -up pycairo-1.10.0/test/examples_test.py~ pycairo-1.10.0/test/examples_test.py
2 | --- pycairo-1.10.0/test/examples_test.py~ 2010-05-29 08:28:35.000000000 +0300
3 | +++ pycairo-1.10.0/test/examples_test.py 2013-12-20 22:53:07.806217741 +0200
4 | @@ -14,7 +14,7 @@ def test_snippets():
5 | examples/cairo_snippets/snippets/
6 | '''
7 | def doSnippets(name):
8 | - retcode = subprocess.call('python %s -s' % name, shell=True)
9 | + retcode = subprocess.call('python3 %s -s' % name, shell=True)
10 | assert retcode == 0, 'Error: retcode == {0}'.format(retcode)
11 |
12 | os.chdir(os.path.join(os.path.dirname(__file__), '..', 'examples',
13 |
--------------------------------------------------------------------------------
/rpms/kwplayer/python3-keybinder.obsoleted:
--------------------------------------------------------------------------------
1 | # rpmlint calls the following error:
2 | # E: non-executable-script /usr/lib/python3.3/site-packages/keybinder/keybinder_gtk.py 0644L /usr/bin/env
3 | # This text file contains a shebang or is located in a path dedicated for
4 | # executables, but lacks the executable bits and cannot thus be executed. If
5 | # the file is meant to be an executable script, add the executable bits,
6 | # otherwise remove the shebang or move the file elsewhere.
7 |
8 | %{!?python3_sitelib: %global python_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
9 | %global debug_package %{nil}
10 | %global project python3-keybinder
11 | %global repo %{project}
12 |
13 | # commit
14 | %global _commit 1f633d0f8cf3d84ec83b6338a7965840b6d1940f
15 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
16 |
17 | Name: python3-keybinder
18 | Version: 1.1.2
19 | Release: 1.git%{_shortcommit}%{?dist}
20 | Summary: Python3 Keybinding Library for X
21 |
22 | License: GPLv3
23 | URL: https://github.com/LiuLang/python3-keybinder
24 | # https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
25 | Source0: https://github.com/LiuLang/python3-keybinder/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
26 |
27 | BuildArch: noarch
28 | BuildRequires: python3-devel
29 | # not in repos now:
30 | # include this line will call rpmlint to error explicit-lib-dependency
31 | Requires: python3-xlib
32 |
33 | %description
34 | python3-keybinder uses python3-Xlib to bind global keyboard shortcuts.
35 | It runs on almost all desktop environments and window managers on Linux Desktop.
36 |
37 | %prep
38 | %setup -q -n %repo-%{_commit}
39 |
40 | %build
41 | %{__python3} setup.py build
42 |
43 | %install
44 | rm -rf $RPM_BUILD_ROOT
45 | %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
46 |
47 | %files
48 | %doc examples LICENSE README.md
49 | %{python3_sitelib}/keybinder/*
50 | %{python3_sitelib}/python3_keybinder-%{version}-py%{python3_version}.egg-info
51 | %exclude %{python3_sitelib}/keybinder/__pycache__
52 |
53 | %changelog
54 | * Wed May 06 2015 mosquito - 1.1.2-1
55 | - Rename version name
56 | * Thu Nov 27 2014 mosquito - 1.1.2git20141120-1
57 | - Update version to 1.1.2git20141120
58 | * Wed Nov 19 2014 mosquito - 1.1.2git20141113-1
59 | - Update version to 1.1.2git20141113
60 | * Mon Nov 17 2014 mosquito - 1.1.2-1
61 | - Initial build
62 |
--------------------------------------------------------------------------------
/rpms/kwplayer/python3-xlib.obsoleted:
--------------------------------------------------------------------------------
1 | %{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
2 | %global debug_package %{nil}
3 | %global project python3-xlib
4 | %global repo %{project}
5 |
6 | # commit
7 | %global _commit e68a323cc8e2441c488344cc2225fef0baa17526
8 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
9 |
10 | Name: python3-xlib
11 | Version: 0.15
12 | Release: 1.git%{_shortcommit}%{?dist}
13 | Summary: Python3 X Library
14 |
15 | License: GPLv2
16 | URL: https://github.com/LiuLang/python3-xlib
17 | # https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
18 | Source0: https://github.com/LiuLang/python3-xlib/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
19 |
20 | BuildArch: noarch
21 | BuildRequires: python3-devel
22 |
23 | %description
24 | python3-xlib is python3 version of python-xlib.
25 |
26 | %prep
27 | %setup -q -n %repo-%{_commit}
28 |
29 | %build
30 | %{__python3} setup.py build
31 |
32 | %install
33 | rm -rf $RPM_BUILD_ROOT
34 | %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
35 |
36 | %files
37 | %doc README.md LICENSE doc examples
38 | %{python3_sitelib}/Xlib/*
39 | %{python3_sitelib}/python3_xlib-0.15-py%{python3_version}.egg-info
40 | %exclude %{python3_sitelib}/Xlib/__pycache__
41 |
42 | %changelog
43 | * Wed May 06 2015 mosquito - 0.15-1
44 | - Rename version name
45 | * Wed Nov 19 2014 mosquito - 0.15git20141113-1
46 | - Update version to 0.15git20141113
47 | * Mon Nov 17 2014 mosquito - 0.15-1
48 | - Initial build
49 |
--------------------------------------------------------------------------------
/rpms/lighttable/fix-lt-exception.patch:
--------------------------------------------------------------------------------
1 | --- a/deploy/core/main.js
2 | +++ b/deploy/core/main.js
3 | @@ -2,7 +2,7 @@
4 |
5 | var app = require('app'), // Module to control application life.
6 | BrowserWindow = require('browser-window'), // Module to create native browser window.
7 | - ipc = require("ipc"),
8 | + ipc = require("electron").ipcMain,
9 | optimist = require('optimist');
10 |
11 | // Keep a global reference of the window object, if you don't, the window will
12 | @@ -49,7 +49,7 @@
13 | });
14 |
15 | // and load the index.html of the app.
16 | - window.loadUrl('file://' + __dirname + '/LightTable.html?id=' + window.id);
17 | + window.loadURL('file://' + __dirname + '/LightTable.html?id=' + window.id);
18 |
19 | // Notify LT that the user requested to close the window/app
20 | window.on("close", function(evt) {
21 | @@ -59,7 +59,9 @@
22 |
23 | // Emitted when the window is closed.
24 | window.on('closed', function() {
25 | - windows[window.id] = null;
26 | + try {
27 | + windows[window.id] = null;
28 | + } catch(e) {}
29 | });
30 |
31 | return window;
32 |
--------------------------------------------------------------------------------
/rpms/lighttable/leiningen.spec:
--------------------------------------------------------------------------------
1 | # http://pkgs.fedoraproject.org/cgit/rpms/java-1.8.0-openjdk.git
2 | %global debug_package %{nil}
3 | %global __jar_repack %{nil}
4 |
5 | Name: leiningen
6 | Version: 2.7.1
7 | Release: 1%{?dist}
8 | Summary: Clojure projects manager with bundled clojure
9 | Group: Development/Tools
10 | License: EPL-1.0
11 | URL: http://leiningen.org/
12 |
13 | Source0: https://github.com/technomancy/leiningen/releases/download/%{version}/%{name}-%{version}-standalone.zip
14 | Source1: https://raw.github.com/technomancy/leiningen/stable/bin/lein-pkg
15 | Source2: https://raw.github.com/technomancy/leiningen/master/bash_completion.bash
16 | Source3: https://raw.github.com/technomancy/leiningen/master/zsh_completion.zsh
17 |
18 | BuildArch: noarch
19 | Requires: java-1.8.0-openjdk-devel
20 | #Requires: oracle-jdk8
21 |
22 | %description
23 | Leiningen is a build and project management tool written in Clojure
24 | and used pervasively throughout the Clojure community.
25 |
26 | See more http://clojure.org/community/resources
27 |
28 | %description -l zh_CN
29 | Leiningen 是使用 Clojure 编写的 Clojure 项目管理工具, 该工具
30 | 在 Clojure 社区中相当普及.
31 |
32 | 更多信息 http://clojure.org/community/resources
33 |
34 | %package zsh-completion
35 | Summary: zsh completion files for leiningen
36 | BuildArch: noarch
37 | Requires: %{name} = %{version}-%{release}
38 | Requires: zsh
39 |
40 | %description zsh-completion
41 | This package installs %{summary}.
42 |
43 | %prep
44 |
45 | %build
46 |
47 | %install
48 | # install lein.jar
49 | install -d %{buildroot}%{_javadir}
50 | install -p -m 644 %{S:0} %{buildroot}%{_javadir}/%{name}-%{version}-standalone.jar
51 |
52 | # install lein script
53 | install -d %{buildroot}%{_bindir}
54 | install -p -m 755 %{S:1} %{buildroot}%{_bindir}/lein
55 |
56 | # install bash completion
57 | install -d %{buildroot}%{_datadir}/bash-completion/completions
58 | install -p -m 644 %{S:2} %{buildroot}%{_datadir}/bash-completion/completions/%{name}
59 |
60 | # install zsh completion
61 | install -d %{buildroot}%{_datadir}/zsh/site-functions
62 | install -p -m 644 %{S:3} %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
63 |
64 | %files
65 | %defattr(-,root,root,-)
66 | %{_bindir}/lein
67 | %{_javadir}/%{name}-%{version}-standalone.jar
68 | %{_datadir}/bash-completion/completions/%{name}
69 |
70 | %files zsh-completion
71 | %{_datadir}/zsh/site-functions/_%{name}
72 |
73 | %changelog
74 | * Mon Jan 16 2017 mosquito - 2.7.1-1
75 | - Update to 2.7.1
76 | * Mon Mar 28 2016 mosquito - 2.6.1-1
77 | - Initial build
78 |
--------------------------------------------------------------------------------
/rpms/mdk3/mdk3.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 |
3 | Name: mdk3
4 | Version: 6
5 | Release: 1%{?dist}
6 | Summary: An 802.11 wireless network security testing tool
7 |
8 | Group: Applications/System
9 | License: GPLv2
10 | URL: http://aspj.aircrack-ng.org
11 | Source0: http://aspj.aircrack-ng.org/%{name}-v%{version}.tar.bz2
12 |
13 | %description
14 | An 802.11 wireless network security testing tool.
15 |
16 | %description -l zh_CN
17 | 802.11 无线网络安全测试工具.
18 |
19 | %prep
20 | %setup -q -n %{name}-v%{version}
21 |
22 | %build
23 | make
24 |
25 | %install
26 | make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
27 |
28 | %files
29 | %doc AUTHORS COPYING CHANGELOG docs/*
30 | %{_sbindir}/%{name}
31 |
32 | %changelog
33 | * Fri Jul 3 2015 mosquito - 6-1
34 | - Rebuild for fedora 22
35 | * Fri Feb 13 2015 Felix Kaiser - 6-1
36 | - Initial package
37 |
--------------------------------------------------------------------------------
/rpms/motrix/motrix-launcher.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | export ELECTRON_IS_DEV=0
3 | exec electron11 /usr/lib/motrix/app.asar "@"
4 |
--------------------------------------------------------------------------------
/rpms/motrix/motrix.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=Motrix
3 | Exec=motrix --no-sandbox %U
4 | Terminal=false
5 | Type=Application
6 | Icon=motrix
7 | StartupWMClass=Motrix
8 | Comment=A full-featured download manager
9 | MimeType=application/x-bittorrent;x-scheme-handler/mo;x-scheme-handler/motrix;x-scheme-handler/magnet;x-scheme-handler/thunder;
10 | Categories=Network;
11 |
--------------------------------------------------------------------------------
/rpms/motrix/motrix.spec:
--------------------------------------------------------------------------------
1 | # Note: Npm depends on network. Network should be enabled when building this software.
2 |
3 | %global debug_package %{nil}
4 |
5 | Name: motrix
6 | Version: 1.6.11
7 | Release: 1%{?dist}
8 | Summary: A full-featured download manager.
9 | License: MIT
10 | Url: https://github.com/agalwood/Motrix
11 | Source0: https://github.com/agalwood/Motrix/archive/refs/tags/v%{version}.tar.gz
12 | Source1: motrix-launcher.sh
13 | Source2: motrix.desktop
14 | Source3: motrix.xml
15 | Patch0: motrix-1.16.11-npm-deps-fix.patch
16 | # Motrix 1.6.11 can't be built normally, fixed in future version but not tagged yet.
17 | # https://github.com/agalwood/Motrix/commit/7868a4870b9bc485c66174f7bf4b92ed324f5458
18 |
19 | BuildRequires: nodejs
20 | BuildRequires: npm
21 | BuildRequires: yarnpkg
22 | Requires: electron11
23 |
24 | %description
25 | A full-featured download manager.
26 |
27 | %prep
28 | %autosetup -n Motrix-%{version}
29 |
30 | %build
31 | yarn
32 | yarn run build:dir
33 |
34 | %install
35 | install -Dm644 release/linux-unpacked/resources/app.asar -t "%{buildroot}%{_prefix}/lib/motrix/"
36 | cp -r release/linux-unpacked/resources/engine "%{buildroot}%{_prefix}/lib/motrix/"
37 | install -Dm644 static/512x512.png %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/motrix.png
38 | install -Dm755 %{SOURCE1} %{buildroot}%{_bindir}/motrix
39 | install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/applications/motrix.desktop
40 | install -Dm644 %{SOURCE3} %{buildroot}%{_datadir}/mime/packages/motrix.xml
41 |
42 | %files
43 | %{_bindir}/motrix
44 | %{_prefix}/lib/motrix
45 | %{_datadir}/applications/motrix.desktop
46 | %{_datadir}/icons/hicolor/512x512/apps/motrix.png
47 | %{_datadir}/mime/packages/motrix.xml
48 |
49 | %changelog
50 | * Sat Mar 05 2022 zhullyb - 1.6.11-1
51 | - First build.
52 |
53 |
54 |
--------------------------------------------------------------------------------
/rpms/motrix/motrix.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
--------------------------------------------------------------------------------
/rpms/mozc/ibus-setup-mozc-jp.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=IBus Mozc Setup
3 | Comment=Set up IBus Mozc engine
4 | Exec=/usr/libexec/mozc/mozc_tool --mode=config_dialog
5 | Icon=production
6 | NoDisplay=true
7 | Type=Application
8 | StartupNotify=true
9 |
--------------------------------------------------------------------------------
/rpms/mozc/mozc-build-gcc.patch:
--------------------------------------------------------------------------------
1 | --- a/src/gyp/common.gypi
2 | +++ b/src/gyp/common.gypi
3 | @@ -128,9 +128,9 @@
4 | 'compiler_host_version_int': 304, # Clang 3.4 or higher
5 | }],
6 | ['target_platform=="Linux"', {
7 | - 'compiler_target': 'clang',
8 | + 'compiler_target': 'gcc',
9 | 'compiler_target_version_int': 304, # Clang 3.4 or higher
10 | - 'compiler_host': 'clang',
11 | + 'compiler_host': 'gcc',
12 | 'compiler_host_version_int': 304, # Clang 3.4 or higher
13 | }],
14 | ],
15 | @@ -450,8 +450,8 @@
16 | ['target_platform=="Linux"', {
17 | 'make_global_settings': [
18 | ['AR', '= 3.19.0
16 |
17 | %description
18 | This package contains the dmks kernel modules for Mediatek MT7601U USB WiFi dongle provided by https://github.com/kuba-moo/mt7601u. Be careful since this include binary firmware from vendor, which is also licensed under GPL.
19 |
20 | %prep
21 | %setup -n %{module}-%{commit}
22 |
23 |
24 |
25 | %install
26 | mkdir -p %{buildroot}/usr/src/%{module}-%{version}/
27 | cp -rf * %{buildroot}/usr/src/%{module}-%{version}
28 | cat << EOF >>%{buildroot}/usr/src/%{module}-%{version}/dkms.conf
29 | PACKAGE_NAME="%{module}"
30 | PACKAGE_VERSION="%{version}"
31 | BUILT_MODULE_NAME[0]="%{module}"
32 | DEST_MODULE_LOCATION[0]="/kernel/drivers/net/wireless"
33 | AUTOINSTALL="yes"
34 | EOF
35 | mkdir -p %{buildroot}/lib/firmware/
36 | cp -rf %_sourcedir/MT7601.bin %{buildroot}/lib/firmware/mt7601u.bin
37 | %files
38 | %defattr(-,root,root)
39 | /usr/src/%{module}-%{version}
40 | /lib/firmware/mt7601u.bin
41 |
42 | %post
43 | for POSTINST in /usr/lib/dkms/common.postinst; do
44 | if [ -f $POSTINST ]; then
45 | $POSTINST %{module} %{version}
46 | exit $?
47 | fi
48 | echo "WARNING: $POSTINST does not exist."
49 | done
50 | echo -e "ERROR: DKMS version is too old and %{module} was not"
51 | echo -e "built with legacy DKMS support."
52 | echo -e "You must either rebuild %{module} with legacy postinst"
53 | echo -e "support or upgrade DKMS to a more current version."
54 | exit 1
55 |
56 | %preun
57 | # Only remove the modules if they are for this %{version}-%{release}. A
58 | # package upgrade can replace them if only the %{release} is changed.
59 | RELEASE="/var/lib/dkms/%{module}/%{version}/build/%{module}.release"
60 | #if [ -f $RELEASE ] && [ `cat $RELEASE`%{?dist} = "%{version}-%{release}" ]; then
61 | echo -e
62 | echo -e "Uninstall of %{module} module (version %{version}) beginning:"
63 | dkms remove -m %{module} -v %{version} --all --rpm_safe_upgrade
64 | #fi
65 | exit 0
66 |
67 | %changelog
68 | * Tue May 26 2015 Zamir SUN - ad5474ecd9
69 | - Switch to github source code.
70 | * Sun Mar 15 2015 Zamir SUN - 3.0.0.4-1
71 | - Initial the rpm
72 |
--------------------------------------------------------------------------------
/rpms/mu/mu_translation.patch:
--------------------------------------------------------------------------------
1 | diff --git a/src/sdk/knlocalemanager.cpp b/src/sdk/knlocalemanager.cpp
2 | index 7eded34..3da5195 100644
3 | --- a/src/sdk/knlocalemanager.cpp
4 | +++ b/src/sdk/knlocalemanager.cpp
5 | @@ -81,7 +81,7 @@ void KNLocaleManager::loadLanguageFiles(const QString &languageDir)
6 | //the default embedded language.
7 | addLanguage("English", "English", "", QPixmap("://public/English.png"));
8 | //Load the language in application default folder.
9 | - loadLanguageInFolder(qApp->applicationDirPath()+"/Language");
10 | + loadLanguageInFolder("/usr/share/mu/locale");
11 | //Load the language in the language folder.
12 | loadLanguageInFolder(languageDir);
13 | }
14 | @@ -240,9 +240,9 @@ inline void KNLocaleManager::loadLanguageInFolder(const QString &dirPath)
15 | for(auto i : folderList)
16 | {
17 | //Use the file name as key.
18 | - QString &&key=i.fileName();
19 | + QString &&key=i.fileName().section('.',0,0);
20 | //Ignore if the current info is not folder, dot(.) and dot-dot(..).
21 | - if(!i.isDir() || key=="." || key=="..")
22 | + if(i.isDir() || key=="." || key=="..")
23 | {
24 | continue;
25 | }
26 | @@ -252,8 +252,8 @@ inline void KNLocaleManager::loadLanguageInFolder(const QString &dirPath)
27 | // | |-Simplified_Chinese.qm Translation file (.qm)
28 | // | |-Simplified_Chinese.png Translation icon (.png)
29 | //Get the language file and the icon file.
30 | - QFileInfo qmInfo(i.absoluteFilePath()+"/"+key+".qm"),
31 | - iconInfo(i.absoluteFilePath()+"/"+key+".png");
32 | + QFileInfo qmInfo("/usr/share/mu/locale/"+key+".qm"),
33 | + iconInfo("/usr/share/mu/locale/"+key+".png");
34 | //If there's no qm file, then ignore this folder.
35 | if(qmInfo.exists())
36 | {
37 |
--------------------------------------------------------------------------------
/rpms/musicbox/musicbox_logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/rpms/musicbox/musicbox_logo.png
--------------------------------------------------------------------------------
/rpms/netdata/netdata.init:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | #
3 | # netdata This shell script takes care of starting and stopping netdata.
4 | #
5 | # chkconfig: 345 99 01
6 | # description: netdata is a Real-time performance monitoring
7 | # probe: false
8 | # processname: netdata
9 | # pidfile: /var/run/netdata.pid
10 | ### BEGIN INIT INFO
11 | # Provides: netdata
12 | # Required-Start: $network
13 | # Required-Stop: $network
14 | # Default-Start: 3 4 5
15 | # Short-Description: netdata.
16 | # Description: netdata is a highly optimized Linux daemon providing real-time
17 | # performance monitoring for Linux systems, Applications, SNMP devices, over
18 | # the web!
19 | #It tries to visualize the truth of now, in its greatest detail, so that you
20 | #can get insights of what is happening now and what just happened, on your
21 | #systems and applications.
22 | ### END INIT INFO
23 |
24 |
25 | # Source function library.
26 | . /etc/rc.d/init.d/functions
27 |
28 | # Source networking configuration.
29 | . /etc/sysconfig/network
30 |
31 | [ -f /usr/sbin/netdata ] || exit 0
32 |
33 | # See how we were called.
34 | case "$1" in
35 | start)
36 | if [ -n "`/sbin/pidof netdata`" ]; then
37 | echo -n "netdata: already running"
38 | RETVAL=$?
39 | echo
40 | exit $RETVAL
41 | fi
42 | echo -n "Starting netdata: "
43 | /usr/sbin/netdata ${OPTIONS}
44 | RETVAL=$?
45 | [ $RETVAL -eq 0 ] && success || failure
46 | echo
47 | [ $RETVAL -eq 0 ] && touch /var/lock/subsys/netdata
48 | ;;
49 | stop)
50 | echo -n "Stopping netdata: "
51 | killproc netdata
52 | RETVAL=$?
53 | echo
54 | [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/netdata
55 | ;;
56 | status)
57 | status netdata
58 | RETVAL=$?
59 | ;;
60 | restart|reload)
61 | $0 stop
62 | $0 start
63 | RETVAL=$?
64 | ;;
65 | *)
66 | echo "Usage: netdata {start|stop|status|restart}"
67 | exit 1
68 | ;;
69 | esac
70 |
71 | exit $RETVAL
72 |
--------------------------------------------------------------------------------
/rpms/netdata/netdata.logrotate:
--------------------------------------------------------------------------------
1 | /var/log/netdata/*log {
2 | create 0640 netdata netdata
3 | daily
4 | rotate 14
5 | missingok
6 | notifempty
7 | delaycompress
8 | compress
9 | sharedscripts
10 | postrotate
11 | /sbin/service netdata restart >/dev/null
12 | endscript
13 | }
14 |
--------------------------------------------------------------------------------
/rpms/netdata/netdata.tmpfiles:
--------------------------------------------------------------------------------
1 | f /var/run/netdata.pid 0644 netdata netdata -
2 |
--------------------------------------------------------------------------------
/rpms/netease-cloud-music/netease-cloud-music.appdata.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | netease-cloud-music.desktop
4 | CC0-1.0
5 | Netease Cloud Music
6 | 网易云音乐
7 | 網易云音樂
8 | Netease Cloud Music
9 | 网易云音乐
10 | 網易云音樂
11 | 網易云音樂
12 |
13 |
14 | This is a installer script for NetEase Cloud Music, it can help you to
15 | install NetEase Cloud Music in your openSUSE.
16 |
17 | NetEase Cloud Music is an app to stream music and download songs to your
18 | device's memory. The best thing about it is that it lets you do this with
19 | thousands of songs, all completely free.
20 |
21 | NetEase Cloud Music is something like a free Chinese Spotify that gives
22 | unlimited access to almost any song you can imagine. Even if the app is
23 | designed mainly for people in China, you can still use it to find almost
24 | all the big-name international musicians.
25 |
26 |
27 | 网易云音乐是一款播放流音乐和下载音乐到你设备的应用,可以下载成千上万免费的正版音乐。
28 |
29 |
30 | 網易云音樂是一款播放流音樂和下載音樂到你設備的應用,可以下載成千上萬免費的正版音樂。
31 |
32 |
33 | 網易云音樂是一款播放流音樂和下載音樂到你設備的應用,可以下載成千上萬免費的正版音樂。
34 |
35 |
36 | https://music.163.com/
37 | http://feedback.deepin.org/feedback
38 |
39 |
40 |
41 |
42 | EULA
43 |
44 | NetEase, Inc.
45 | Wuhan Deepin Technology Co., Ltd.
46 |
47 |
48 | https://www.deepin.org/wp-content/uploads/2016/12/netease-cloud-music-1.png
49 | https://www.deepin.org/wp-content/uploads/2016/12/netease-cloud-music-2.png
50 | https://www.deepin.org/wp-content/uploads/2016/12/netease-cloud-music-3.png
51 |
52 |
53 |
54 |
--------------------------------------------------------------------------------
/rpms/netease-cloud-music/netease-cloud-music.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 |
3 | Name: netease-cloud-music
4 | Version: 1.2.0.2
5 | Release: 1%{?dist}
6 | Summary: Netease Cloud Music, converted from .deb package
7 | License: EULA
8 | URL: https://music.163.com/
9 | Source0: https://packages.deepin.com/deepin/pool/main/n/%{name}/%{name}_%{version}-1_amd64.deb
10 | Source1: %{name}.appdata.xml
11 | BuildRequires: dpkg
12 | BuildRequires: desktop-file-utils
13 | Requires: desktop-file-utils
14 | Requires: gstreamer1-plugins-ugly
15 |
16 | %description
17 | %{summary}.
18 |
19 | %prep
20 | dpkg -X %{S:0} .
21 | find usr -type f -exec mv {} . \;
22 |
23 | %install
24 | install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
25 | install -Dm644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
26 | install -Dm644 %{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
27 | install -Dm644 %{S:1} %{buildroot}%{_metainfodir}/%{name}.appdata.xml
28 |
29 | %check
30 | desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
31 |
32 | %files
33 | %doc README.md
34 | %license copyright
35 | %{_bindir}/%{name}
36 | %{_datadir}/applications/%{name}.desktop
37 | %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
38 | %{_metainfodir}/%{name}.appdata.xml
39 |
40 | %changelog
41 | * Mon Apr 29 2019 Bangjie Deng - 1.2.0.2-1
42 | - Update to 1.2.0.2
43 |
44 | * Mon Dec 31 2018 mosquito - 1.1.3.1-1
45 | - Update to 1.1.3.1
46 |
47 | * Sun Mar 25 2018 robberphex - 1.1.0-1
48 | - Update to 1.1.0
49 | - Add appdata.xml
50 |
51 | * Mon Oct 03 2016 nrechn - 1.0.0-2
52 | - Fix source libssl not found
53 | - Update source libssl package
54 |
55 | * Sun Jul 31 2016 mosquito - 1.0.0-1
56 | - Update to 1.0.0
57 |
58 | * Tue May 31 2016 mosquito - 0.9.0-2
59 | - Add Req gstreamer1-plugins-ugly
60 |
61 | * Wed May 25 2016 mosquito - 0.9.0-1
62 | - Initial build
63 |
--------------------------------------------------------------------------------
/rpms/netease-cloud-music/qcef.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %global cefurl https://github.com/linuxdeepin/cef-binary
3 | %global cefcom 059a0c9cef4e289a50dc7a2f4c91fe69db95035e
4 |
5 | Name: qcef
6 | Version: 1.1.4.5
7 | Release: 2%{?dist}
8 | Summary: Qt5 binding of CEF
9 | License: GPLv3
10 | URL: https://github.com/linuxdeepin/qcef
11 | Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
12 | Source1: %{cefurl}/archive/%{cefcom}/cef-binary-%{cefcom}.tar.gz
13 | Patch0: %{name}_remove_demo.patch
14 | BuildRequires: cmake
15 | BuildRequires: gcc-c++
16 | BuildRequires: qt5-linguist
17 | BuildRequires: pkgconfig(Qt5Core)
18 | BuildRequires: pkgconfig(Qt5WebChannel)
19 | BuildRequires: pkgconfig(Qt5X11Extras)
20 |
21 | %description
22 | %{summary}.
23 |
24 | %package devel
25 | Summary: Development package for %{name}
26 | Requires: %{name}%{?_isa} = %{version}-%{release}
27 |
28 | %description devel
29 | Header files and libraries for %{name}.
30 |
31 | %prep
32 | %setup -q -a1
33 | %patch0 -p1 -b .remove_demo
34 | mv -T cef-binary-%{cefcom} cef
35 |
36 | %build
37 | cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
38 | -DQCEF_INSTALL_PATH=%{_libdir} \
39 | -DCMAKE_BUILD_TYPE=Release \
40 | -DCMAKE_VERBOSE_MAKEFILE=ON
41 | %make_build
42 |
43 | %install
44 | %make_install INSTALL_ROOT=%{buildroot}
45 | chmod +s %{buildroot}%{_libdir}/%{name}/chrome-sandbox
46 |
47 | %files
48 | %doc README.md
49 | %license LICENSE
50 | %{_libdir}/lib%{name}.so.1*
51 | %{_libdir}/%{name}/
52 |
53 | %files devel
54 | %{_libdir}/lib%{name}.so
55 | %{_libdir}/pkgconfig/lib%{name}.pc
56 | %{_includedir}/%{name}/
57 |
58 | %changelog
59 | * Tue Feb 12 2019 Bangjie Deng - 1.1.4.5-2
60 | - Rebuilt due to qt-5.11.3
61 |
62 | * Mon Dec 31 2018 mosquito - 1.1.4.5-1
63 | - Initial package build
64 |
--------------------------------------------------------------------------------
/rpms/netease-cloud-music/qcef_remove_demo.patch:
--------------------------------------------------------------------------------
1 | --- a/src/CMakeLists.txt
2 | +++ b/src/CMakeLists.txt
3 | @@ -266,11 +267,6 @@ if (CMAKE_BUILD_TYPE MATCHES Debug)
4 | target_link_libraries(qt-version ${QT_LIBS})
5 | endif ()
6 |
7 | -add_executable(web-demo tests/web_demo.cpp)
8 | -target_link_libraries(web-demo
9 | - ${LINK_LIBS}
10 | - ${CEF_TARGET})
11 | -
12 | ## Installation
13 | install(TARGETS "${CEF_TARGET}"
14 | DESTINATION "${QCEF_INSTALL_PATH}")
15 |
--------------------------------------------------------------------------------
/rpms/nginx/modsec_lua_dump.patch:
--------------------------------------------------------------------------------
1 | --- modsecurity-2.9.0.orig/apache2/msc_lua.c 2015-03-06 01:35:06.458699865 +0800
2 | +++ modsecurity-2.9.0/apache2/msc_lua.c 2015-03-06 01:34:48.719647454 +0800
3 | @@ -111,7 +111,7 @@
4 | dump.pool = pool;
5 | dump.parts = apr_array_make(pool, 128, sizeof(msc_script_part *));
6 |
7 | - lua_dump(L, dump_writer, &dump);
8 | + lua_dump(L, dump_writer, &dump, 1);
9 |
10 | (*script) = apr_pcalloc(pool, sizeof(msc_script));
11 | (*script)->name = filename;
12 |
--------------------------------------------------------------------------------
/rpms/nginx/nginx-auto-cc-gcc.patch:
--------------------------------------------------------------------------------
1 | --- auto/cc/gcc.orig 2007-03-22 08:34:53.000000000 -0600
2 | +++ auto/cc/gcc 2007-03-22 08:58:47.000000000 -0600
3 | @@ -172,7 +172,9 @@
4 |
5 |
6 | # stop on warning
7 | -CFLAGS="$CFLAGS -Werror"
8 | +# This combined with Fedora's FORTIFY_SOURCE=2 option causes it nginx
9 | +# to not compile.
10 | +#CFLAGS="$CFLAGS -Werror"
11 |
12 | # debug
13 | CFLAGS="$CFLAGS -g"
14 |
--------------------------------------------------------------------------------
/rpms/nginx/nginx-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/rpms/nginx/nginx-logo.png
--------------------------------------------------------------------------------
/rpms/nginx/nginx-upgrade:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | [ ! -f /run/nginx.pid ] && exit 1
3 | echo "Start new nginx master..."
4 | /bin/systemctl kill --signal=SIGUSR2 nginx.service
5 | sleep 5
6 | [ ! -f /run/nginx.pid.oldbin ] && sleep 10
7 | if [ ! -f /run/nginx.pid.oldbin ]; then
8 | echo "Failed to start new nginx master."
9 | exit 1
10 | fi
11 | echo "Stop old nginx master gracefully..."
12 | oldpid=`/usr/bin/cat /run/nginx.pid.oldbin 2>/dev/null`
13 | /bin/kill -s QUIT $oldpid 2>/dev/null
14 | sleep 5
15 | [ -f /run/nginx.pid.oldbin ] && sleep 10
16 | if [ -f /run/nginx.pid.oldbin ]; then
17 | echo "Failed to stop old nginx master."
18 | exit 1
19 | fi
20 |
--------------------------------------------------------------------------------
/rpms/nginx/nginx.logrotate:
--------------------------------------------------------------------------------
1 | /var/log/nginx/*log {
2 | create 0644 nginx nginx
3 | daily
4 | rotate 10
5 | missingok
6 | notifempty
7 | compress
8 | sharedscripts
9 | postrotate
10 | /bin/kill -USR1 `cat /run/nginx.pid 2>/dev/null` 2>/dev/null || true
11 | endscript
12 | }
13 |
14 |
--------------------------------------------------------------------------------
/rpms/nginx/nginx.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=The nginx HTTP and reverse proxy server
3 | After=network.target remote-fs.target nss-lookup.target
4 |
5 | [Service]
6 | Type=forking
7 | PIDFile=/run/nginx.pid
8 | ExecStartPre=/usr/sbin/nginx -t
9 | ExecStart=/usr/sbin/nginx
10 | ExecReload=/bin/kill -s HUP $MAINPID
11 | KillSignal=SIGQUIT
12 | TimeoutStopSec=5
13 | KillMode=mixed
14 | PrivateTmp=true
15 |
16 | [Install]
17 | WantedBy=multi-user.target
18 |
--------------------------------------------------------------------------------
/rpms/nginx/nginx.sysconfig:
--------------------------------------------------------------------------------
1 | # Configuration file for the nginx service
2 |
3 | # set this to the location of the nginx configuration file
4 | NGINX_CONF_FILE=/etc/nginx/nginx.conf
5 |
--------------------------------------------------------------------------------
/rpms/nginx/poweredby.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/rpms/nginx/poweredby.png
--------------------------------------------------------------------------------
/rpms/nitrokey-app/nitrokey-app.spec.obsoleted:
--------------------------------------------------------------------------------
1 | %global _icondir %{_datadir}/icons/hicolor
2 |
3 | Name: nitrokey-app
4 | Version: 0.5.1
5 | Release: 1%{?dist}
6 | Summary: Nitrokey Configuration tool
7 |
8 | Group: Applications/System
9 | License: GPLv3
10 | URL: https://github.com/Nitrokey/nitrokey-app
11 | #Source0: %{url}/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
12 | Source0: %{url}/archive/v%{version}.tar.gz
13 |
14 | BuildRequires: qt5-qtbase-devel
15 | BuildRequires: libnotify-devel
16 | BuildRequires: libappindicator-devel
17 | BuildRequires: libusb-devel
18 | BuildRequires: gtk2-devel
19 | BuildRequires: desktop-file-utils
20 | BuildRequires: gtk-update-icon-cache
21 |
22 | %description
23 | Nitrokey app, the application to configure Nitrokey Pro and Nitrokey Storage.
24 |
25 | %prep
26 | %setup -q -n %{name}-%{version}
27 |
28 | %build
29 | %{qmake_qt5} %{name}-qt5.pro
30 | %make_build
31 |
32 | %install
33 | # install
34 | install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
35 | install -Dm0644 data/40-nitrokey.rules %{buildroot}%{_udevrulesdir}/40-nitrokey.rules
36 | install -Dm0644 data/bash-autocomplete/%{name} %{buildroot}%{_datadir}/bash-completion/completions/%{name}
37 |
38 | # icon files
39 | install -Dm0644 data/%{name}-small.xpm %{buildroot}%{_datadir}/pixmaps/%{name}-small.xpm
40 | pushd data/icons/hicolor
41 | install -Dm0644 48x48/apps/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
42 | install -Dm0644 scalable/apps/%{name}.svg %{buildroot}%{_icondir}/scalable/apps/%{name}.svg
43 | for size in 128x128 48x48 32x32; do
44 | install -Dm0644 ${size}/apps/%{name}.png %{buildroot}%{_icondir}/${size}/apps/%{name}.png
45 | done
46 | popd
47 |
48 | # desktop file
49 | install -d %{buildroot}%{_datadir}/applications
50 | desktop-file-install --delete-original --dir=%{buildroot}%{_datadir}/applications data/nitrokey-app.desktop
51 | desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
52 |
53 | %post
54 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
55 | /usr/bin/update-desktop-database &>/dev/null ||:
56 |
57 | %postun
58 | if [ $1 -eq 0 ]; then
59 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
60 | /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null ||:
61 | fi
62 | /usr/bin/update-desktop-database &>/dev/null ||:
63 |
64 | %posttrans
65 | /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null ||:
66 |
67 | %files
68 | %defattr(-,root,root,-)
69 | %doc README.md
70 | %license LICENSE
71 | %{_bindir}/%{name}
72 | %{_datadir}/pixmaps/%{name}*
73 | %{_datadir}/icons/hicolor/*/apps/%{name}*
74 | %{_datadir}/applications/%{name}.desktop
75 | %{_datadir}/bash-completion/completions/%{name}
76 | %{_udevrulesdir}/40-nitrokey.rules
77 |
78 | %changelog
79 | * Thu Oct 13 2016 Zamir SUN - 0.5.1-1
80 | - Initial nitrokey-app
81 |
--------------------------------------------------------------------------------
/rpms/nodejs-electron11-bin/electron11-launcher.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/bash
2 |
3 | set -euo pipefail
4 |
5 | name=electron9
6 | flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf"
7 |
8 | declare -a flags
9 |
10 | if [[ -f "${flags_file}" ]]; then
11 | mapfile -t < "${flags_file}"
12 | fi
13 |
14 | for line in "${MAPFILE[@]}"; do
15 | if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then
16 | flags+=("${line}")
17 | fi
18 | done
19 |
20 | exec /usr/lib/${name}/electron "$@" "${flags[@]}"
21 |
22 |
--------------------------------------------------------------------------------
/rpms/nodejs-electron11-bin/nodejs-electron11-bin.spec:
--------------------------------------------------------------------------------
1 | Name: nodejs-electron11-bin
2 | Version: 11.5.0
3 | Release: 1%{?dist}
4 | Summary: Build cross-platform desktop apps with JavaScript, HTML, and CSS
5 | License: MIT
6 | Url: https://github.com/electron/electron
7 | Source0: %{url}/releases/download/v%{version}/electron-v%{version}-linux-x64.zip
8 | Source1: electron11-launcher.sh
9 | Source2: https://raw.githubusercontent.com/electron/electron/main/LICENSE
10 |
11 | BuildRequires: bsdtar
12 |
13 | Provides: nodejs-electron11 = %{version}
14 | Provides: electron11 = %{version}
15 | AutoReqProv: no
16 |
17 | %description
18 | Build cross-platform desktop apps with JavaScript, HTML, and CSS
19 |
20 | %prep
21 | install -Dm644 %{S:2} %{_builddir}/
22 |
23 | %build
24 |
25 | %install
26 | install -dm755 "%{buildroot}%{_prefix}/lib/electron11"
27 | bsdtar -xf %{S:0} -C "%{buildroot}%{_prefix}/lib/electron11"
28 | chmod u+s "%{buildroot}%{_prefix}/lib/electron11/chrome-sandbox"
29 | install -Dm755 %{S:1} "%{buildroot}%{_bindir}/electron11"
30 |
31 | %files
32 | %license LICENSE
33 | %{_bindir}/electron11
34 | %{_prefix}/lib/electron11/
35 |
36 | %changelog
37 | * Sun Mar 06 2022 zhullyb - 11.5.0-1
38 | - First Build
39 |
40 |
41 |
--------------------------------------------------------------------------------
/rpms/nodejs-electron12-bin/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) Electron contributors
2 | Copyright (c) 2013-2020 GitHub Inc.
3 |
4 | Permission is hereby granted, free of charge, to any person obtaining
5 | a copy of this software and associated documentation files (the
6 | "Software"), to deal in the Software without restriction, including
7 | without limitation the rights to use, copy, modify, merge, publish,
8 | distribute, sublicense, and/or sell copies of the Software, and to
9 | permit persons to whom the Software is furnished to do so, subject to
10 | the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be
13 | included in all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
17 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
19 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
20 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/rpms/nodejs-electron12-bin/electron12-launcher.sh:
--------------------------------------------------------------------------------
1 | #!/usr/bin/bash
2 |
3 | set -euo pipefail
4 |
5 | name=electron12
6 | flags_file="${XDG_CONFIG_HOME:-$HOME/.config}/${name}-flags.conf"
7 |
8 | declare -a flags
9 |
10 | if [[ -f "${flags_file}" ]]; then
11 | mapfile -t < "${flags_file}"
12 | fi
13 |
14 | for line in "${MAPFILE[@]}"; do
15 | if [[ ! "${line}" =~ ^[[:space:]]*#.* ]]; then
16 | flags+=("${line}")
17 | fi
18 | done
19 |
20 | exec /usr/lib/${name}/electron "$@" "${flags[@]}"
21 |
22 |
--------------------------------------------------------------------------------
/rpms/nodejs-electron12-bin/nodejs-electron12-bin.spec:
--------------------------------------------------------------------------------
1 | Name: nodejs-electron12-bin
2 | Version: 12.2.3
3 | Release: 1%{?dist}
4 | Summary: Build cross-platform desktop apps with JavaScript, HTML, and CSS
5 | License: MIT
6 | Url: https://github.com/electron/electron
7 | Source0: https://npmmirror.com/mirrors/electron/v%{version}/electron-v%{version}-linux-x64.zip
8 | # You can find original source here: https://github.com/electron/electron/releases
9 | Source1: electron12-launcher.sh
10 | Source2: https://raw.githubusercontent.com/electron/electron/main/LICENSE
11 |
12 | BuildRequires: bsdtar
13 |
14 | Provides: nodejs-electron12 = %{version}
15 | Provides: electron12 = %{version}
16 | AutoReqProv: no
17 |
18 | %description
19 | Build cross-platform desktop apps with JavaScript, HTML, and CSS
20 |
21 | %prep
22 | install -Dm644 %{S:2} %{_builddir}/
23 |
24 | %build
25 |
26 | %install
27 | install -dm755 "%{buildroot}%{_prefix}/lib/electron12"
28 | bsdtar -xf %{S:0} -C "%{buildroot}%{_prefix}/lib/electron12"
29 | chmod u+s "%{buildroot}%{_prefix}/lib/electron12/chrome-sandbox"
30 | install -Dm755 %{S:1} "%{buildroot}%{_bindir}/electron12"
31 |
32 | %files
33 | %license LICENSE
34 | %{_bindir}/electron12
35 | %{_prefix}/lib/electron12/
36 |
37 | %changelog
38 | * Sat Mar 05 2022 zhullyb - 12.2.3-1
39 | - First Build
40 |
41 |
42 |
--------------------------------------------------------------------------------
/rpms/nvchecker/nvchecker.spec:
--------------------------------------------------------------------------------
1 | %{!?python3_sitelib: %global python3_sitelib %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
2 | %global debug_package %{nil}
3 |
4 | Name: nvchecker
5 | Version: 2.7
6 | Release: 2%{?dist}
7 | Summary: New version checker for software releases
8 |
9 | License: MIT
10 | URL: https://github.com/lilydjwg/nvchecker
11 | Source0: https://github.com/lilydjwg/nvchecker/archive/refs/tags/v%{version}.tar.gz
12 |
13 | BuildRequires: make
14 | BuildRequires: python3-devel
15 | BuildRequires: python3-docutils
16 | BuildRequires: python3-setuptools
17 | BuildRequires: python3-pygments
18 | Requires: python3
19 | Requires: python3-tomli
20 | Requires: python3-structlog
21 | Requires: python3-appdirs
22 | Requires: python3-tornado
23 | Requires: python3-pycurl
24 |
25 | Provides: python3-%{name} = %{version}
26 | Obsoletes: python3-%{name} <= %{version}
27 |
28 | %description
29 | %{summary}
30 |
31 | %package bash-completion
32 | Summary: bash completion files for %{name}
33 | Requires: %{name} = %{version}-%{release}
34 | Requires: bash
35 |
36 | %description bash-completion
37 | This package installs %{summary}.
38 |
39 | %prep
40 | %autosetup
41 |
42 | %build
43 | %{__python3} setup.py build
44 | make -C docs man
45 |
46 | %install
47 | %{__python3} setup.py install --root="%{buildroot}" --optimize=1 --skip-build
48 | %{__install} -Dm644 docs/_build/man/nvchecker.1 -t %{buildroot}%{_datadir}/man/man1/
49 | %{__install} -Dm644 scripts/nvtake.bash_completion %{buildroot}%{_datadir}/bash-completion/completions/nvtake
50 |
51 | %files
52 | %license LICENSE
53 | %doc docs/usage.rst
54 | %doc sample_config.toml
55 | %{_bindir}/{nvchecker,nvchecker-ini2toml,nvchecker-notify,nvcmp,nvtake}
56 | %{python3_sitelib}/*
57 | %{_datadir}/man/man1/nvchecker.1.gz
58 |
59 | %files bash-completion
60 | %{_datadir}/bash-completion/completions/nvtake
61 |
62 | %changelog
63 | * Sun Feb 27 2022 zhullyb - 2.7-2
64 | - Add make into buildrequires
65 | - Specify the version of provided python3-nvchecker
66 |
67 | * Sat Feb 26 2022 zhullyb - 2.7-1
68 | - new version
69 |
70 | * Wed Aug 22 2018 Bangjie Deng 1.1-1
71 | - Initial RPM release
72 |
--------------------------------------------------------------------------------
/rpms/nvidia-kmod/nv-linux-arm.patch:
--------------------------------------------------------------------------------
1 | diff -up nvidiapkg-armv7hl/kernel/common/inc/nv-linux.h.arm nvidiapkg-armv7hl/kernel/common/inc/nv-linux.h
2 | --- nvidiapkg-armv7hl/kernel/common/inc/nv-linux.h.arm 2015-01-11 04:30:46.000000000 +0000
3 | +++ nvidiapkg-armv7hl/kernel/common/inc/nv-linux.h 2015-01-16 23:20:16.785229307 +0000
4 | @@ -240,7 +240,8 @@ NV_STATUS nvos_forward_error_to_cray(str
5 | * NVIDIA graphics driver has no way of knowing and is unlikely
6 | * to work correctly.
7 | */
8 | -#if defined(CONFIG_XEN) && !defined(CONFIG_PARAVIRT)
9 | +#if defined(CONFIG_XEN) && !defined(CONFIG_PARAVIRT) && \
10 | + !defined(NVCPU_ARM)
11 | #include
12 | #include
13 | #define NV_XEN_SUPPORT_FULLY_VIRTUALIZED_KERNEL
14 |
--------------------------------------------------------------------------------
/rpms/nvidia-kmod/nv-linux-arm2.patch:
--------------------------------------------------------------------------------
1 | diff -up nvidiapkg-armv7hl/kernel/common/inc/nv-linux.h.swf nvidiapkg-armv7hl/kernel/common/inc/nv-linux.h
2 | --- nvidiapkg-armv7hl/kernel/common/inc/nv-linux.h.swf 2015-07-22 02:40:54.000000000 +0200
3 | +++ nvidiapkg-armv7hl/kernel/common/inc/nv-linux.h 2015-07-29 14:07:14.866367595 +0200
4 | @@ -148,7 +148,7 @@ static inline uid_t __kuid_val(kuid_t ui
5 | #include
6 | #endif
7 |
8 | -#if defined(CONFIG_SWIOTLB) && defined(NVCPU_AARCH64)
9 | +#if defined(CONFIG_SWIOTLB) && (defined(NVCPU_AARCH64) || defined(NVCPU_ARM))
10 | #include
11 | #endif
12 |
13 |
--------------------------------------------------------------------------------
/rpms/nvidia-kmod/nvidia-kmodtool-excludekernel-filterfile:
--------------------------------------------------------------------------------
1 | lpae$
2 |
--------------------------------------------------------------------------------
/rpms/nylas/n1-fix-protocol.patch:
--------------------------------------------------------------------------------
1 | --- a/src/browser/nylas-protocol-handler.es6
2 | +++ b/src/browser/nylas-protocol-handler.es6
3 | @@ -1,4 +1,4 @@
4 | -import {app, protocol} from 'electron';
5 | +import {app, BrowserWindow} from 'electron';
6 | import fs from 'fs';
7 | import path from 'path';
8 |
9 | @@ -30,7 +30,8 @@
10 |
11 | // Creates the 'Nylas' custom protocol handler.
12 | registerNylasProtocol() {
13 | - protocol.registerFileProtocol('nylas', (request, callback) => {
14 | + let win = new BrowserWindow({show: false});
15 | + win.webContents.session.protocol.registerFileProtocol('nylas', (request, callback) => {
16 | const relativePath = path.normalize(request.url.substr(7));
17 |
18 | let filePath = null;
19 |
--------------------------------------------------------------------------------
/rpms/nylas/n1-fix-renderer-path.patch:
--------------------------------------------------------------------------------
1 | --- a/src/module-cache.coffee
2 | +++ b/src/module-cache.coffee
3 | @@ -194,14 +194,19 @@
4 | return
5 |
6 | registerBuiltins = (devMode) ->
7 | - electronRoot = path.join(process.resourcesPath, 'atom.asar')
8 | + fs = require 'fs-plus'
9 | + electronRoot = path.join(process.resourcesPath, 'electron.asar')
10 |
11 | commonRoot = path.join(electronRoot, 'common', 'api', 'lib')
12 | + if not fs.existsSync(commonRoot)
13 | + commonRoot = path.join(electronRoot, 'common', 'api')
14 | commonBuiltins = ['callbacks-registry', 'clipboard', 'crash-reporter', 'screen', 'shell']
15 | for builtin in commonBuiltins
16 | cache.builtins[builtin] = path.join(commonRoot, "#{builtin}.js")
17 |
18 | rendererRoot = path.join(electronRoot, 'renderer', 'api', 'lib')
19 | + if not fs.existsSync(rendererRoot)
20 | + rendererRoot = path.join(electronRoot, 'renderer', 'api')
21 | rendererBuiltins = ['ipc', 'remote']
22 | for builtin in rendererBuiltins
23 | cache.builtins[builtin] = path.join(rendererRoot, "#{builtin}.js")
24 |
--------------------------------------------------------------------------------
/rpms/nylas/n1-use-system-apm.patch:
--------------------------------------------------------------------------------
1 | --- a/build/Gruntfile.coffee
2 | +++ b/build/Gruntfile.coffee
3 | @@ -401,7 +401,7 @@
4 |
5 | grunt.registerTask('ci', ciTasks)
6 |
7 | - defaultTasks = ['download-electron', 'build', 'set-version', 'generate-asar']
8 | + defaultTasks = ['build', 'set-version', 'generate-asar']
9 | defaultTasks.push 'mkdmg' if process.platform is 'darwin'
10 | defaultTasks.push 'install' unless process.platform is 'linux'
11 | grunt.registerTask('default', defaultTasks)
12 | --- a/build/tasks/copy-files-for-build-task.coffee
13 | +++ b/build/tasks/copy-files-for-build-task.coffee
14 | @@ -42,9 +42,6 @@
15 | cp path.join(shellAppDir, 'electron.exe'), path.join(shellAppDir, 'nylas.exe')
16 | rm path.join(shellAppDir, 'electron.exe')
17 | else
18 | - cp 'electron', shellAppDir, filter: /default_app/
19 | - cp path.join(shellAppDir, 'electron'), path.join(shellAppDir, 'nylas')
20 | - rm path.join(shellAppDir, 'electron')
21 |
22 | mkdir appDir
23 |
24 | @@ -176,16 +173,11 @@
25 | # Move all of the node modules inside /apm/node_modules to new-app/apm/node_modules
26 | apmInstallDir = path.resolve(appDir, '..', 'new-app', 'apm')
27 | mkdir apmInstallDir
28 | - cp path.join('apm', 'node_modules'), path.resolve(apmInstallDir, 'node_modules'), filter: filterNodeModule
29 |
30 | # Move /apm/node_modules/atom-package-manager to new-app/apm. We're essentially
31 | # pulling the atom-package-manager module up outside of the node_modules folder,
32 | # which is necessary because npmV3 installs nested dependencies in the same dir.
33 | apmPackageDir = path.join(apmInstallDir, 'node_modules', 'atom-package-manager')
34 | - for name in fs.readdirSync(apmPackageDir)
35 | - fs.renameSync path.join(apmPackageDir, name), path.join(apmInstallDir, name)
36 | - fs.unlinkSync(path.join(apmInstallDir, 'node_modules', '.bin', 'apm'))
37 | - fs.rmdirSync(apmPackageDir)
38 |
39 | if process.platform is 'darwin'
40 | grunt.file.recurse path.join('build', 'resources', 'mac'), (sourcePath, rootDirectory, subDirectory='', filename) ->
41 | --- a/src/package-manager.coffee
42 | +++ b/src/package-manager.coffee
43 | @@ -150,6 +150,8 @@
44 | @apmPath = path.join(@resourcePath, 'apm', 'bin', commandName)
45 | if not fs.isFileSync(@apmPath)
46 | @apmPath = path.join(@resourcePath, 'apm', 'node_modules', 'atom-package-manager', 'bin', commandName)
47 | + if not fs.isFileSync(@apmPath)
48 | + @apmPath = path.join('/bin', commandName)
49 | @apmPath
50 |
51 | # Public: Get the paths being used to look for packages.
52 |
--------------------------------------------------------------------------------
/rpms/openresty/fix_default_port.patch:
--------------------------------------------------------------------------------
1 | --- a/bundle/memc-nginx-module-0.17/src/ngx_http_memc_util.c
2 | +++ b/bundle/memc-nginx-module-0.17/src/ngx_http_memc_util.c
3 | @@ -140,14 +140,14 @@
4 | (int) uscfp[i]->port, (int) url->port);
5 | continue;
6 | }
7 | -
8 | + #if (nginx_version < 1011006)
9 | if (uscfp[i]->default_port && url->default_port
10 | && uscfp[i]->default_port != url->default_port)
11 | {
12 | dd("upstream_add: default_port not match");
13 | continue;
14 | }
15 | -
16 | + #endif
17 | return uscfp[i];
18 | }
19 |
20 | --- a/bundle/ngx_postgres-1.0rc7/src/ngx_postgres_module.c
21 | +++ b/bundle/ngx_postgres-1.0rc7/src/ngx_postgres_module.c
22 | @@ -1319,14 +1319,14 @@
23 | (int) uscfp[i]->port, (int) url->port);
24 | continue;
25 | }
26 | -
27 | + #if (nginx_version < 1011006)
28 | if (uscfp[i]->default_port && url->default_port
29 | && (uscfp[i]->default_port != url->default_port))
30 | {
31 | dd("default_port doesn't match");
32 | continue;
33 | }
34 | -
35 | + #endif
36 | dd("returning");
37 | return uscfp[i];
38 | }
39 | --- a/bundle/redis-nginx-module-0.3.7/ngx_http_redis_module.c
40 | +++ b/bundle/redis-nginx-module-0.3.7/ngx_http_redis_module.c
41 | @@ -1004,14 +1004,14 @@
42 | if (uscfp[i]->port != url->port) {
43 | continue;
44 | }
45 | -
46 | + #if (nginx_version < 1011006)
47 | if (uscfp[i]->default_port
48 | && url->default_port
49 | && uscfp[i]->default_port != url->default_port)
50 | {
51 | continue;
52 | }
53 | -
54 | + #endif
55 | return uscfp[i];
56 | }
57 |
58 | --- a/bundle/redis2-nginx-module-0.13/src/ngx_http_redis2_util.c
59 | +++ b/bundle/redis2-nginx-module-0.13/src/ngx_http_redis2_util.c
60 | @@ -76,7 +76,7 @@
61 | (int) uscfp[i]->port, (int) url->port);
62 | continue;
63 | }
64 | -
65 | + #if (nginx_version < 1011006)
66 | if (uscfp[i]->default_port
67 | && url->default_port
68 | && uscfp[i]->default_port != url->default_port)
69 | @@ -84,7 +84,7 @@ ngx_http_redis2_upstream_add(ngx_http_request_t *r, ngx_url_t *url)
70 | dd("upstream_add: default_port not match");
71 | continue;
72 | }
73 | -
74 | + #endif
75 | return uscfp[i];
76 | }
77 |
78 |
--------------------------------------------------------------------------------
/rpms/openresty/modsec_lua_dump.patch:
--------------------------------------------------------------------------------
1 | --- modsecurity-2.9.0.orig/apache2/msc_lua.c 2015-03-06 01:35:06.458699865 +0800
2 | +++ modsecurity-2.9.0/apache2/msc_lua.c 2015-03-06 01:34:48.719647454 +0800
3 | @@ -111,7 +111,7 @@
4 | dump.pool = pool;
5 | dump.parts = apr_array_make(pool, 128, sizeof(msc_script_part *));
6 |
7 | - lua_dump(L, dump_writer, &dump);
8 | + lua_dump(L, dump_writer, &dump, 1);
9 |
10 | (*script) = apr_pcalloc(pool, sizeof(msc_script));
11 | (*script)->name = filename;
12 |
--------------------------------------------------------------------------------
/rpms/openresty/nginx-auto-cc-gcc.patch:
--------------------------------------------------------------------------------
1 | --- auto/cc/gcc.orig 2007-03-22 08:34:53.000000000 -0600
2 | +++ auto/cc/gcc 2007-03-22 08:58:47.000000000 -0600
3 | @@ -172,7 +172,9 @@
4 |
5 |
6 | # stop on warning
7 | -CFLAGS="$CFLAGS -Werror"
8 | +# This combined with Fedora's FORTIFY_SOURCE=2 option causes it nginx
9 | +# to not compile.
10 | +#CFLAGS="$CFLAGS -Werror"
11 |
12 | # debug
13 | CFLAGS="$CFLAGS -g"
14 |
--------------------------------------------------------------------------------
/rpms/openresty/nginx-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/rpms/openresty/nginx-logo.png
--------------------------------------------------------------------------------
/rpms/openresty/openresty-upgrade:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | [ ! -f /run/openresty.pid ] && exit 1
3 | echo "Start new openresty master..."
4 | /bin/systemctl kill --signal=SIGUSR2 openresty.service
5 | sleep 5
6 | [ ! -f /run/openresty.pid.oldbin ] && sleep 10
7 | if [ ! -f /run/openresty.pid.oldbin ]; then
8 | echo "Failed to start new openresty master."
9 | exit 1
10 | fi
11 | echo "Stop old openresty master gracefully..."
12 | oldpid=`/usr/bin/cat /run/openresty.pid.oldbin 2>/dev/null`
13 | /bin/kill -s QUIT $oldpid 2>/dev/null
14 | sleep 5
15 | [ -f /run/openresty.pid.oldbin ] && sleep 10
16 | if [ -f /run/openresty.pid.oldbin ]; then
17 | echo "Failed to stop old openresty master."
18 | exit 1
19 | fi
20 |
--------------------------------------------------------------------------------
/rpms/openresty/openresty.logrotate:
--------------------------------------------------------------------------------
1 | /var/log/openresty/*log {
2 | create 0644 nginx nginx
3 | daily
4 | rotate 10
5 | missingok
6 | notifempty
7 | compress
8 | sharedscripts
9 | postrotate
10 | /bin/kill -USR1 `cat /run/openresty.pid 2>/dev/null` 2>/dev/null || true
11 | endscript
12 | }
13 |
--------------------------------------------------------------------------------
/rpms/openresty/openresty.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=The OpenResty HTTP and reverse proxy server
3 | After=network.target remote-fs.target nss-lookup.target
4 |
5 | [Service]
6 | Type=forking
7 | PIDFile=/run/openresty.pid
8 | ExecStartPre=/usr/sbin/openresty -t
9 | ExecStart=/usr/sbin/openresty
10 | ExecReload=/bin/kill -s HUP $MAINPID
11 | KillSignal=SIGQUIT
12 | TimeoutStopSec=5
13 | KillMode=mixed
14 | PrivateTmp=true
15 |
16 | [Install]
17 | WantedBy=multi-user.target
18 |
--------------------------------------------------------------------------------
/rpms/openresty/openresty.sysconfig:
--------------------------------------------------------------------------------
1 | # Configuration file for the nginx service
2 |
3 | # set this to the location of the nginx configuration file
4 | NGINX_CONF_FILE=/etc/openresty/openresty.conf
5 |
--------------------------------------------------------------------------------
/rpms/openresty/poweredby.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/rpms/openresty/poweredby.png
--------------------------------------------------------------------------------
/rpms/pacman/package-query.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %global project package-query
3 | %global repo %{project}
4 |
5 | # commit
6 | %global _commit a2e8235e4fa37506dd0c4f00a859c2fba44b619d
7 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
8 |
9 | Name: package-query
10 | Version: 1.7
11 | Release: 1.git%{_shortcommit}%{?dist}
12 | Summary: Query ALPM and AUR
13 | Summary(zh_CN): 查询 ALPM 和 AUR
14 |
15 | License: GPL
16 | Group: Applications/System
17 | Url: https://github.com/archlinuxfr/package-query
18 | Source0: https://github.com/archlinuxfr/package-query/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
19 |
20 | BuildRequires: libalpm-devel
21 | BuildRequires: libarchive-devel
22 | BuildRequires: yajl-devel
23 | BuildRequires: libcurl-devel
24 | BuildRequires: gettext-devel
25 | BuildRequires: libtool
26 | BuildRequires: autoconf
27 | BuildRequires: automake
28 | BuildRequires: gzip
29 | Requires: pacman
30 | Requires: yajl
31 |
32 | %description
33 | Query ALPM and AUR.
34 |
35 | %description -l zh_CN
36 | 查询 ALPM 和 AUR.
37 |
38 | %prep
39 | %setup -q -n %repo-%{_commit}
40 |
41 | %build
42 | libtoolize
43 | aclocal -I m4 --install
44 | autoheader
45 | automake --foreign --add-missing
46 | autoconf
47 | %configure --with-aur-url=https://aur.archlinux.org
48 | make %{?_smp_mflags}
49 |
50 | %install
51 | %make_install DESTDIR=%{buildroot}
52 | gzip -9 %{buildroot}%{_mandir}/man8/*
53 |
54 | %files
55 | %defattr(-,root,root,-)
56 | %doc README
57 | %{_bindir}/%{name}
58 | %{_mandir}/man8/*.gz
59 |
60 | %changelog
61 | * Fri Feb 12 2016 mosquito - 1.7-1.gita2e8235
62 | - Update to 1.7-1.gita2e8235
63 | * Wed Sep 23 2015 mosquito - 1.6.2-3.git9305778
64 | - Update to 1.6.2-3.git9305778
65 | * Sun Jul 26 2015 mosquito - 1.6.2-2.git3d1115f
66 | - Rebuild for libalpm-4.2.1
67 | * Sun Jul 26 2015 mosquito - 1.6.2-1.git3d1115f
68 | - Initial build
69 |
--------------------------------------------------------------------------------
/rpms/pacman/yaourt.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %global project yaourt
3 | %global repo %{project}
4 |
5 | # commit
6 | %global _commit 56818c08c94be17dd5a5319ac15cea4f58b47cf7
7 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
8 |
9 | Name: yaourt
10 | Version: 1.7
11 | Release: 1.git%{_shortcommit}%{?dist}
12 | Summary: A pacman wrapper with extended features and AUR support
13 | Summary(zh_CN): 支持 AUR 的 pacman 前端
14 |
15 | License: GPLv2
16 | Group: Applications/System
17 | Url: https://archlinux.fr/yaourt-en
18 | Source0: https://github.com/archlinuxfr/yaourt/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
19 | Source1: https://github.com/FZUG/repo/raw/master/rpms/SOURCES/pacman/yaourt-link
20 |
21 | BuildArch: noarch
22 | BuildRequires: gettext gzip
23 | Requires: diffutils
24 | Requires: pacman
25 | Requires: package-query
26 |
27 | %description
28 | A pacman wrapper with extended features and AUR support.
29 |
30 | %description -l zh_CN
31 | 支持 AUR 的 pacman 前端
32 |
33 | %prep
34 | %setup -q -n %repo-%{_commit}
35 | find -name 'es_419.po' -exec rm -f '{}' \;
36 |
37 | %build
38 | pushd src
39 | make PREFIX=%{_prefix} \
40 | sysconfdir=%{_sysconfdir} \
41 | localstatedir=%{_var} \
42 | libdir=%{_libexecdir}
43 |
44 | %install
45 | %make_install -C src \
46 | PREFIX=%{_prefix} \
47 | sysconfdir=%{_sysconfdir} \
48 | localstatedir=%{_var} \
49 | libdir=%{_libexecdir} \
50 | DESTDIR=%{buildroot}
51 | gzip -9 %{buildroot}%{_mandir}/man{5,8}/*
52 | install -m 755 %{S:1} %{buildroot}%{_bindir}
53 |
54 | %find_lang %{name}
55 |
56 | %files -f %{name}.lang
57 | %defattr(-,root,root,-)
58 | %doc README.pod
59 | %license src/COPYING
60 | %config(noreplace) %{_sysconfdir}/%{name}rc
61 | %{_bindir}/*
62 | %attr(755,-,-) %{_libexecdir}/%{name}/*.sh
63 | %{_mandir}/man*/*.gz
64 | %exclude %{_datadir}/bash-completion/
65 |
66 | %changelog
67 | * Fri Feb 12 2016 mosquito - 1.7-1.git56818c0
68 | - Update to 1.7-1.git56818c0
69 | * Wed Sep 23 2015 mosquito - 1.6-5.gite75e9b8
70 | - Update to 1.6-5.gite75e9b8
71 | * Sun Aug 2 2015 mosquito - 1.6-4.gitd2d8300
72 | - Add yaourt-link's -q, -S option
73 | * Fri Jul 31 2015 mosquito - 1.6-3.gitd2d8300
74 | - Add yaourt-link's -L option
75 | * Thu Jul 30 2015 mosquito - 1.6-2.gitd2d8300
76 | - Fixed yaourt-link's LINK function
77 | * Sun Jul 26 2015 mosquito - 1.6-1.gitd2d8300
78 | - Initial build
79 |
--------------------------------------------------------------------------------
/rpms/pineapple-calendar/pineapple-calendar.spec:
--------------------------------------------------------------------------------
1 | Name: pineapple-calendar
2 | Version: 0.1.1
3 | Release: 1%{?dist}
4 | Summary: Plasma addon that provides Simple Chinese Luni-solar calendar support
5 |
6 | License: LGPLv2+
7 | URL: https://github.com/BLumia/pineapple-calendar
8 | Source0: https://github.com/BLumia/pineapple-calendar/archive/refs/tags/0.1.1.tar.gz
9 |
10 | BuildRequires: kf5-plasma-devel
11 | BuildRequires: qt5-qtdeclarative-devel
12 | BuildRequires: libicu-devel
13 | BuildRequires: cmake
14 | Requires: kf5-plasma
15 |
16 | %description
17 | Plasma addon that provides Simple Chinese Luni-solar calendar support
18 |
19 | %prep
20 | %autosetup
21 |
22 | %build
23 | %cmake_kf5 -DBUILD_PLASMOID=ON -DBUILD_TESTING=OFF
24 | %cmake_build
25 |
26 | %install
27 | %cmake_install
28 |
29 | %files
30 | %{_kf5_qmldir}/net/blumia/calendar/*
31 | %{_kf5_datadir}/plasma/plasmoids/net.blumia.pineapple.calendar
32 | %{_kf5_metainfodir}/net.blumia.pineapple.calendar.appdata.xml
33 | %{_kf5_datadir}/kservices5/plasma-applet-net.blumia.pineapple.calendar.desktop
34 |
35 |
36 | %changelog
37 | * Wed Jul 21 2021 Liu Sen - 0.1.1-1
38 | - First build
39 |
--------------------------------------------------------------------------------
/rpms/python-yq/python3-yq.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 |
3 | Name: python3-yq
4 | Version: 2.14.0
5 | Release: 1%{?dist}
6 | Summary: Command-line YAML, XML, TOML processor - jq wrapper for YAML/XML/TOML documents
7 |
8 | License: APL 2.0
9 | URL: https://kislyuk.github.io/yq/
10 | Source0: https://files.pythonhosted.org/packages/source/y/yq/yq-%{version}.tar.gz
11 |
12 | BuildRequires: python3-setuptools_scm
13 | BuildRequires: python3-devel
14 | Requires: jq
15 | Requires: python3-argcomplete
16 | Requires: python3-toml
17 | Requires: python3-xmltodict
18 | Requires: python3-yaml
19 |
20 | %description
21 | %{summary}.
22 |
23 | %prep
24 | %autosetup -n yq-%{version}
25 |
26 |
27 | %build
28 | %py3_build
29 |
30 |
31 | %install
32 | %py3_install
33 |
34 |
35 | %files
36 | %license LICENSE
37 | %{_bindir}/{tomlq,xq,yq}
38 | %{python3_sitelib}/{yq,yq-%{version}-py3.*.egg-info}
39 |
40 | %changelog
41 | * Tue Mar 01 2022 zhullyb
42 | - First build.
43 |
--------------------------------------------------------------------------------
/rpms/reciteword/reciteword.spec:
--------------------------------------------------------------------------------
1 | %global project reciteword
2 |
3 | Name: reciteword
4 | Version: 0.8.6
5 | Release: 1%{?dist}
6 | Summary: Recite word easily
7 |
8 | License: GPLv2+
9 | URL: https://sourceforge.net/projects/%{project}
10 | Source0: %{url}/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
11 |
12 | BuildRequires: esound-devel
13 | BuildRequires: automake
14 | BuildRequires: espeak-devel
15 |
16 | %description
17 | Recite word easily.
18 |
19 | %prep
20 | %setup -q
21 |
22 | %build
23 | %configure
24 | make %{?_smp_mflags}
25 |
26 | %install
27 | %make_install
28 |
29 | %preun
30 |
31 | %postun
32 |
33 | %files
34 | %doc README* Readme.mac readme.txt AUTHORS ChangeLog NEWS
35 | %license COPYING
36 | %{_bindir}/%{name}
37 | %{_datadir}/locale/zh_CN/LC_MESSAGES/%{name}.mo
38 | %{_datadir}/pixmaps/*.png
39 | %dir %{_datadir}/%{name}
40 | %{_datadir}/%{name}
41 | %{_datadir}/applications/*.desktop
42 |
43 | %changelog
44 | * Sun Apr 15 2018 Zamir SUN 0.8.6-1
45 | - Initial RPM package
46 |
--------------------------------------------------------------------------------
/rpms/release/fzug-release.spec:
--------------------------------------------------------------------------------
1 | Name: fzug-release
2 | Version: %{fedora}
3 | Release: 0.1
4 | Summary: FZUG package repositories
5 | Summary(zh_CN): FZUG 中文社区源
6 | License: MIT
7 | Group: System Environment/Base
8 | URL: https://github.com/FZUG/repo
9 | BuildArch: noarch
10 |
11 | %description
12 | FZUG (Fedora Zh User Group) package repository files for yum and dnf.
13 |
14 | %prep
15 |
16 | %build
17 |
18 | %install
19 | Branch=(free nonfree)
20 | install -d -m 755 %{buildroot}/etc/yum.repos.d
21 |
22 | for i in ${Branch[@]}; do
23 | cat > %{buildroot}/etc/yum.repos.d/fzug-${i}.repo < - 28-0.1
49 | - Move to TUNA.
50 |
51 | * Sat Oct 15 2016 mosquito - 25-0.2
52 | - Add testing, pr repository
53 |
54 | * Fri Oct 23 2015 mosquito - 23-0.1
55 | - Initial build
56 |
--------------------------------------------------------------------------------
/rpms/sandbox/sandbox.spec:
--------------------------------------------------------------------------------
1 | # https://github.com/archlinuxcn/repo/blob/master/sandbox/PKGBUILD
2 | # https://wiki.debian.org/Sandbox
3 | %global debug_package %{nil}
4 |
5 | Name: sandbox
6 | Version: 2.11
7 | Release: 1%{?dist}
8 | Summary: Gentoo sandbox tool to run programs in a "sandboxed" environment
9 | Group: Applications/System
10 | License: GPLv2+
11 | URL: https://www.gentoo.org
12 | Source0: https://gitweb.gentoo.org/proj/%{name}.git/snapshot/%{name}-%{version}.tar.xz
13 |
14 | BuildRequires: libtool, libtool-ltdl-devel
15 | BuildRequires: autoconf, automake, m4
16 |
17 | %description
18 | Gentoo Sandbox is a library (and utility) to run programs in a "sandboxed"
19 | environment. This is used as a QA measure to try and prevent applications from
20 | modifying files they should not.
21 |
22 | For example, in the Gentoo world we use it so we can build applications as root
23 | and make sure that the build system does not do crazy things outside of its
24 | build directory. Such as install files to the live root file system or modify
25 | config files on the fly.
26 |
27 | For people who are familiar with the Debian "fakeroot" project or the RPM based
28 | "InstallWatch", sandbox is in the same vein of projects.
29 |
30 | %description -l zh_CN
31 | Gentoo Sandbox 为应用程序提供隔离的沙箱环境. 它常作为 QA 的额外保护措施, 阻止
32 | 应用程序修改工作目录之外的文件.
33 |
34 | 例如, 在 Gentoo 系统中, 我们在编译目录构建程序, 使用 Sandbox 确保构建过程不
35 | 影响编译目录外的系统配置.
36 |
37 | Sandbox 与人们所熟悉的 Debian 的 "fakeroot", 和基于 RPM 的 "InstallWatch" 有
38 | 异曲同工的作用.
39 |
40 | %prep
41 | %setup -q
42 | # change banner
43 | sed -i '/path/s|Gentoo|Fedora|' src/sandbox.c
44 |
45 | %build
46 | autoreconf --install --force
47 | %configure
48 | make %{?_smp_mflags}
49 |
50 | %install
51 | %make_install
52 | mv %{buildroot}%{_bindir}/{%{name},%{name}-shell}
53 | sed -i '/Exec/s|%{name}|%{name}-shell|' \
54 | %{buildroot}%{_datadir}/applications/%{name}.desktop
55 |
56 | # change SANDBOX_LIB variable
57 | sed -i '/GNU/aexport SANDBOX_LIB=%{_libdir}/lib%{name}.so\nunset LD_PRELOAD' \
58 | %{buildroot}%{_datadir}/%{name}/%{name}.bashrc
59 |
60 | %post
61 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
62 | /usr/bin/update-desktop-database &>/dev/null ||:
63 | /sbin/ldconfig
64 |
65 | %postun
66 | if [ $1 -eq 0 ]; then
67 | /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
68 | /usr/bin/gtk-update-icon-cache -f -t -q %{_datadir}/icons/hicolor ||:
69 | fi
70 | /usr/bin/update-desktop-database &>/dev/null ||:
71 | /sbin/ldconfig
72 |
73 | %posttrans
74 | /usr/bin/gtk-update-icon-cache -f -t -q %{_datadir}/icons/hicolor ||:
75 |
76 | %files
77 | %defattr(-,root,root,-)
78 | %doc AUTHORS README NEWS
79 | %license COPYING
80 | %{_sysconfdir}/%{name}*
81 | %{_bindir}/%{name}-shell
82 | %{_libdir}/lib%{name}.so
83 | %{_datadir}/applications/%{name}.desktop
84 | %{_datadir}/pixmaps/%{name}*
85 | %{_datadir}/%{name}/%{name}.bashrc
86 |
87 | %changelog
88 | * Thu May 26 2016 mosquito - 2.11-1
89 | - Release 2.11
90 | * Thu Dec 24 2015 mosquito - 2.10-1
91 | - Release 2.10
92 | * Mon Oct 26 2015 mosquito - 2.9-1
93 | - Initial build
94 |
--------------------------------------------------------------------------------
/rpms/scrcpy/scrcpy.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Name=scrcpy
3 | GenericName=Android Remote Control
4 | Comment=Display and control your Android device
5 | Exec=scrcpy
6 | Icon=scrcpy
7 | Terminal=false
8 | Type=Application
9 | Categories=Utility;RemoteAccess;
10 | StartupNotify=false
11 |
--------------------------------------------------------------------------------
/rpms/scrcpy/scrcpy.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %define pkgname scrcpy
3 | %global forgeurl https://github.com/Genymobile/%{pkgname}
4 | Version: 1.23
5 |
6 | %forgemeta
7 |
8 | Name: %{pkgname}
9 | Release: 1%{?dist}
10 | Summary: Display and control your Android device
11 | License: ASL 2.0
12 |
13 | URL: %{forgeurl}
14 | Source0: %{forgesource}
15 | Source1: https://github.com/Genymobile/%{pkgname}/releases/download/v%{version}/%{pkgname}-server-v%{version}
16 | Source2: %{pkgname}.desktop
17 |
18 | BuildRequires: meson gcc
19 | BuildRequires: java-devel >= 11
20 | BuildRequires: desktop-file-utils
21 |
22 | BuildRequires: pkgconfig(sdl2)
23 | BuildRequires: pkgconfig(ffms2)
24 | BuildRequires: pkgconfig(libusb-1.0)
25 |
26 | Requires: adb
27 | Requires: %{name}-server = %{version}
28 | # https://github.com/Genymobile/scrcpy/blob/master/FAQ.md#issue-with-wayland
29 | Recommends: libdecor
30 |
31 | %description
32 | This application provides display and control of Android devices
33 | connected on USB (or over TCP/IP).
34 |
35 | %package server
36 | Summary: server files for %{name}
37 | Requires: %{name} = %{version}-%{release}
38 |
39 | %description server
40 | This package installs %{summary}.
41 |
42 | %package bash-completion
43 | Summary: bash completion files for %{name}
44 | Requires: %{name} = %{version}-%{release}
45 | Requires: bash
46 |
47 | %description bash-completion
48 | This package installs %{summary}.
49 |
50 | %package zsh-completion
51 | Summary: zsh completion files for %{name}
52 | Requires: %{name} = %{version}-%{release}
53 | Requires: zsh
54 |
55 | %description zsh-completion
56 | This package installs %{summary}.
57 |
58 | %prep
59 | %forgesetup
60 |
61 | %build
62 | %meson -Db_lto=true -Dprebuilt_server='%{S:1}'
63 | %meson_build
64 |
65 | %install
66 | %meson_install
67 | desktop-file-install %{S:2}
68 |
69 | %check
70 | desktop-file-validate %{buildroot}/%{_datadir}/applications/%{pkgname}.desktop
71 |
72 | %files
73 | %license LICENSE
74 | %doc README.md DEVELOP.md FAQ.md
75 | %{_bindir}/%{pkgname}
76 | %{_mandir}/man1/%{pkgname}.1*
77 | %{_datadir}/icons/hicolor/*/apps/%{pkgname}.png
78 | %{_datadir}/applications/%{pkgname}.desktop
79 |
80 | %files server
81 | %{_datadir}/scrcpy/scrcpy-server
82 |
83 | %files bash-completion
84 | %{_datadir}/bash-completion/completions/scrcpy
85 |
86 | %files zsh-completion
87 | %{_datadir}/zsh/site-functions/_scrcpy
88 |
89 | %changelog
90 | * Sat Feb 26 2022 zhullyb - 1.23-1
91 | - new version
92 | - split bash-completion and zsh-completion
93 | - disable debug package
94 |
95 | * Sat Feb 26 2022 zhullyb - 1.22-2
96 | - Split server file
97 |
98 | * Thu Jan 13 2022 sixg0000d 1.21-4
99 | - add scrcpy.desktop
100 |
101 | * Sun Nov 14 2021 zeno 1.20-3
102 | - fix runtime dependencies
103 |
104 | * Tue May 19 2020 Ping Fang - 1.13.1
105 | - Initial package scrcpy
106 |
--------------------------------------------------------------------------------
/rpms/screenfetch/screenfetch.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %global repo screenFetch
3 |
4 | %global commit 5f39bd3f5ff2ee768f18e76917b81db43a460052
5 | %global shortcommit %(c=%{commit}; echo ${c:0:7})
6 |
7 | Name: screenfetch
8 | Version: 3.8.0
9 | Release: 2.git%{shortcommit}%{?dist}
10 | Summary: Fetches system/theme information in terminal
11 | Summary(zh_CN): 终端查询系统/主题信息
12 |
13 | License: GPLv3
14 | URL: https://github.com/KittyKatt/screenFetch
15 | Source: %{url}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
16 | BuildArch: noarch
17 |
18 | %description
19 | Fetches system/theme information in terminal for Linux desktop screenshots.
20 |
21 | %description -l zh_CN
22 | 终端查询系统/主题信息.
23 |
24 | %prep
25 | %setup -q -n %{repo}-%{commit}
26 |
27 | %build
28 |
29 | %install
30 | install -Dm 0755 %{name}-dev %{buildroot}%{_bindir}/%{name}
31 | install -Dm 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
32 |
33 | %files
34 | %doc CHANGELOG README.mkdn TODO
35 | %license COPYING
36 | %{_bindir}/%{name}
37 | %{_mandir}/man1/%{name}.1.*
38 |
39 | %changelog
40 | * Mon Sep 11 2017 mosquito - 3.8.0-2.git5f39bd3
41 | - Update to 5f39bd3
42 | * Sat Mar 11 2017 mosquito - 3.8.0-1.git36518ac
43 | - Update to 3.8.0
44 | * Sat Dec 12 2015 mosquito - 3.7.0-3.git22e5bee
45 | - Update version to 3.7.0-3.git22e5bee
46 | * Thu Sep 24 2015 mosquito - 3.7.0-2.gita86ce5e
47 | - Update version to 3.7.0-2.gita86ce5e
48 | * Fri Aug 14 2015 mosquito - 3.7.0-1.gitd3a0f2b
49 | - Update version to 3.7.0-1.gitd3a0f2b
50 | * Tue Jun 30 2015 mosquito - 3.6.5-1.gite73c7af
51 | - Update version to 3.6.5-1.gite73c7af
52 | * Wed May 6 2015 mosquito - 3.6.5-1.git53e1c0c
53 | - Rename version name
54 | * Fri Dec 12 2014 mosquito - 3.6.5git20141211-1
55 | - Update version to 3.6.5git20141211
56 | * Wed Nov 12 2014 mosquito - 3.6.5git20141112-1
57 | - Update version to 3.6.5git20141112
58 | * Fri Nov 7 2014 mosquito - 3.6.5git20141105-1
59 | - Update version to 3.6.5git20141105
60 | * Tue Nov 4 2014 mosquito - 3.6.5git20141031-1
61 | - Update version to 3.6.5git20141031
62 | * Sun Oct 19 2014 mosquito - 3.6.5-1
63 | - Initial build
64 |
--------------------------------------------------------------------------------
/rpms/shadowsocks/libQtShadowsocks.spec:
--------------------------------------------------------------------------------
1 | %global soname QtShadowsocks
2 |
3 | Name: libqtshadowsocks
4 | Version: 2.1.0
5 | Release: 1%{?dist}
6 | Summary: A lightweight and ultra-fast shadowsocks library written in C++/Qt
7 | License: LGPLv3+
8 | URL: https://github.com/librehat/libQtShadowsocks
9 | Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
10 |
11 | BuildRequires: cmake
12 | BuildRequires: gcc-c++
13 | BuildRequires: qt5-qttools
14 | BuildRequires: pkgconfig(Qt5Gui)
15 | BuildRequires: pkgconfig(Qt5Network)
16 | BuildRequires: pkgconfig(botan-2)
17 |
18 | %description
19 | %{summary}.
20 |
21 | %package devel
22 | Summary: %{name} header files
23 | Requires: %{name}%{?_isa} = %{version}-%{release}
24 |
25 | %description devel
26 | Development files of %{name}.
27 |
28 | %prep
29 | %setup -q -n lib%{soname}-%{version}
30 |
31 | %build
32 | %cmake -DCMAKE_BUILD_TYPE=Release
33 | %make_build
34 |
35 | %install
36 | %make_install INSTALL_ROOT=%{buildroot}
37 |
38 | %files
39 | %doc README.md
40 | %license LICENSE
41 | %{_bindir}/shadowsocks-libqss
42 | %{_libdir}/lib%{soname}.so.2*
43 |
44 | %files devel
45 | %{_libdir}/lib%{soname}.so
46 | %{_libdir}/pkgconfig/%{soname}.pc
47 | %{_includedir}/%{soname}/
48 |
49 | %changelog
50 | * Sun Dec 30 2018 mosquito - 2.1.0-1
51 | - Update to 2.1.0
52 |
53 | * Tue Jan 17 2017 mosquito - 1.10.0-1
54 | - Update to 1.10.0 [8795845]
55 |
56 | * Thu May 26 2016 mosquito - 1.9.0-1
57 | - Update to 1.9.0 [c60df46]
58 |
59 | * Mon Apr 18 2016 mosquito - 1.8.4-2
60 | - Rebuild for botan and Qt 5.6.0
61 |
62 | * Mon Jan 18 2016 mosquito - 1.8.4-1
63 | - Update to 1.8.4 [d2c76c5]
64 |
65 | * Thu Dec 24 2015 mosquito - 1.8.2-1
66 | - Update to 1.8.2 [3c3aa83]
67 |
68 | * Fri Aug 14 2015 mosquito - 1.6.1-1
69 | - Update to 1.6.1 [7b71ee0]
70 |
71 | * Tue Jun 02 2015 mosquito - 1.6.1-1
72 | - Initial build
73 |
--------------------------------------------------------------------------------
/rpms/shadowsocks/shadowsocks-qt5.spec:
--------------------------------------------------------------------------------
1 | Name: shadowsocks-qt5
2 | Version: 3.0.1
3 | Release: 1%{?dist}
4 | Summary: A cross-platform shadowsocks GUI client
5 | License: LGPLv3+
6 | URL: https://github.com/shadowsocks/shadowsocks-qt5
7 | Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
8 |
9 | BuildRequires: cmake
10 | BuildRequires: gcc-c++
11 | BuildRequires: qt5-qttools
12 | BuildRequires: pkgconfig(Qt5Core)
13 | BuildRequires: pkgconfig(Qt5Gui)
14 | BuildRequires: pkgconfig(Qt5Widgets)
15 | BuildRequires: pkgconfig(Qt5Network)
16 | BuildRequires: pkgconfig(QtShadowsocks)
17 | BuildRequires: pkgconfig(botan-2)
18 | BuildRequires: pkgconfig(libqrencode)
19 | BuildRequires: pkgconfig(zbar)
20 | BuildRequires: desktop-file-utils
21 | Requires: hicolor-icon-theme
22 |
23 | %description
24 | %{summary}.
25 |
26 | %prep
27 | %setup -q
28 |
29 | %build
30 | %cmake -DCMAKE_BUILD_TYPE=Release
31 | %make_build
32 |
33 | %install
34 | %make_install INSTALL_ROOT=%{buildroot}
35 | desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
36 |
37 | %files
38 | %doc README.md
39 | %license LICENSE
40 | %{_bindir}/ss-qt5
41 | %{_datadir}/applications/%{name}.desktop
42 | %{_datadir}/icons/hicolor/*/apps/%{name}.png
43 |
44 | %changelog
45 | * Sun Dec 30 2018 mosquito - 3.0.1-1
46 | - Update to 3.0.1
47 |
48 | * Tue Jan 17 2017 mosquito - 2.8.0-1
49 | - Update to 2.8.0 [92a51a4]
50 |
51 | * Thu May 26 2016 mosquito - 2.7.0-1
52 | - Update to 2.7.0 [4540be9]
53 |
54 | * Mon Apr 18 2016 mosquito - 2.6.1-2
55 | - Rebuild for Qt 5.6.0
56 |
57 | * Mon Jan 18 2016 mosquito - 2.6.1-1
58 | - Update to 2.6.1 [ba70fd1]
59 |
60 | * Thu Dec 24 2015 mosquito - 2.6.0-1
61 | - Update to 2.6.0 [7ec8a63]
62 |
63 | * Fri Aug 14 2015 mosquito - 2.4.1-1
64 | - Update to 2.4.1 [6cd4372]
65 |
66 | * Wed May 06 2015 mosquito - 2.4.0-1
67 | - Initial build
68 |
--------------------------------------------------------------------------------
/rpms/sogou/Makefile:
--------------------------------------------------------------------------------
1 | TARGET?=$(shell ls *.te)
2 | SHAREDIR?=/usr/share
3 | #MODULE?=${TARGETS:=.pp.bz2}
4 | #INSTALL=?=install
5 |
6 | all: cil pp
7 | cil: ${TARGET:%.te=%.cil}
8 | pp: ${TARGET:%.te=%.pp.bz2}
9 |
10 | %.pp.bz2: %.pp
11 | @echo Compressing $^ -\> $@; \
12 | bzip2 -f -9 $^
13 |
14 | %.cil: %.pp
15 | @if [ -x /usr/libexec/selinux/hll/pp ]; then \
16 | echo Converting $^ -\> $@; \
17 | cat $^ | /usr/libexec/selinux/hll/pp > $@; \
18 | echo Compressing $@ -\> $@.bz2; \
19 | bzip2 -f -9 $@; \
20 | fi
21 |
22 | %.pp: %.te
23 | make -f ${SHAREDIR}/selinux/devel/Makefile $@
24 |
25 | clean:
26 | rm -rf tmp *.cil *.pp *.bz2
27 |
28 | #install:
29 | #AWK${INSTALL} -m 0644 ${TARGET} \
30 | #gawk${DESTDIR}${SHAREDIR}/targeted/modules
31 |
--------------------------------------------------------------------------------
/rpms/sogou/sogou-diag_dpkg.patch:
--------------------------------------------------------------------------------
1 | --- a/usr/bin/sogou-diag 2015-12-25 21:14:52.175686138 +0800
2 | +++ b/usr/bin/sogou-diag 2015-12-25 21:15:12.715788484 +0800
3 | @@ -40,13 +40,18 @@
4 | log_printf "Detected im-switch, please purge it and use im-config instead.\n"
5 | fi
6 |
7 | -if `which dpkg 2>&1 1>/dev/null`; then
8 | +if `which dpkg &>/dev/null`; then
9 | log_printf "Finding im-config installation: `dpkg -l im-config`\n"
10 | log_printf "Installed fcitx components:\n`dpkg -l | grep fcitx | grep "^i" | awk '{print $2"\t\t"$3}'`\n\n"
11 | dpkg -l > $DPKG_INSTALLED
12 | log_printf "Installed packages list (deb) collected.\n"
13 | +elif `which rpm &>/dev/null`; then
14 | + log_printf "Finding im-chooser installation: `rpm -q im-chooser`\n"
15 | + log_printf "Installed fcitx components:\n`rpm -qa | grep fcitx`\n\n"
16 | + rpm -qa > $DPKG_INSTALLED
17 | + log_printf "Installed packages list (rpm) collected.\n"
18 | else
19 | - log_printf "System type is not Debian based, giving up package info collection.\n"
20 | + log_printf "System type is not Debian and Redhat based, giving up package info collection.\n"
21 | fi
22 |
23 | log_printf "Running fcitx processes:\n`ps -u $USER -o pid,ppid,state,nice,lstart,pcpu,pmem,cmd | grep fcitx | grep -v grep`\n\n"
24 |
--------------------------------------------------------------------------------
/rpms/sogou/sogoupinyin.fc:
--------------------------------------------------------------------------------
1 | HOME_DIR/\.config/SogouPY.*(/.*)? gen_context(system_u:object_r:sogou_home_t,s0)
2 | HOME_DIR/\.config/sogou-qimpanel(/.*)? gen_context(system_u:object_r:sogou_home_t,s0)
3 | HOME_DIR/\.config/Trolltech.conf.* gen_context(system_u:object_r:sogou_home_t,s0)
4 |
5 | /usr/bin/sogou-qimpanel -- gen_context(system_u:object_r:sogou_exec_t,s0)
6 | /usr/bin/sogou-qimpanel-watchdog -- gen_context(system_u:object_r:sogou_exec_t,s0)
7 | /usr/bin/sogou-session -- gen_context(system_u:object_r:sogou_exec_t,s0)
8 | /usr/bin/sogou-diag -- gen_context(system_u:object_r:sogou_exec_t,s0)
9 | /usr/bin/sogou-sys-notify -- gen_context(system_u:object_r:sogou_exec_t,s0)
10 |
11 | /tmp/sogou-qimpanel.* -- gen_context(system_u:object_r:sogou_tmp_t,s0)
12 | /tmp/sni-qt_sogou-qimpanel.*(/.*)? gen_context(system_u:object_r:sogou_tmp_t,s0)
13 |
14 | /usr/share/fcitx-sogoupinyin(/.*)? gen_context(system_u:object_r:sogou_data_t,s0)
15 | /usr/share/sogou-qimpanel(/.*)? gen_context(system_u:object_r:sogou_data_t,s0)
16 | /usr/share/sogoupinyin(/.*)? gen_context(system_u:object_r:sogou_data_t,s0)
17 |
18 | /usr/share/fcitx-sogoupinyin/SogouInput/(.*).ini -- gen_context(system_u:object_r:sogou_conf_t,s0)
19 | /usr/share/fcitx-sogoupinyin/SogouInput/(.*).txt -- gen_context(system_u:object_r:sogou_conf_t,s0)
20 |
21 |
--------------------------------------------------------------------------------
/rpms/sway/sway.obsolete:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 |
3 | Name: sway
4 | Version: 0.9
5 | Release: 1%{?dist}
6 | Summary: i3-compatible window manager for Wayland
7 | Group: User Interface/X
8 | License: MIT
9 | URL: https://github.com/SirCmpwn/sway
10 | Source0: %{url}/archive/%{version}.tar.gz
11 |
12 | BuildRequires: cmake
13 | BuildRequires: pkgconfig(wlc)
14 | BuildRequires: pkgconfig(wayland-client)
15 | BuildRequires: pkgconfig(wayland-cursor)
16 | BuildRequires: pkgconfig(wayland-egl)
17 | BuildRequires: pkgconfig(wayland-scanner)
18 | BuildRequires: pkgconfig(wayland-server)
19 | BuildRequires: pkgconfig(gdk-pixbuf-2.0)
20 | BuildRequires: pkgconfig(json-c)
21 | BuildRequires: pkgconfig(libpcre)
22 | BuildRequires: pkgconfig(pango)
23 | BuildRequires: pkgconfig(cairo)
24 | BuildRequires: asciidoc
25 | BuildRequires: pam-devel
26 | Recommends: ImageMagick
27 | Recommends: ffmpeg
28 |
29 | %description
30 | Sway is a tiling window manager supporting Wayland compositor protocol and
31 | i3-compatible configuration.
32 |
33 | %prep
34 | %autosetup -n %{name}-%{version}
35 |
36 | %build
37 | %cmake \
38 | -DCMAKE_BUILD_TYPE=Release \
39 | -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
40 | -DBUILD_SHARED_LIBS:BOOL=OFF \
41 | -Dzsh-completions=YES \
42 | .
43 | %make_build
44 |
45 | %install
46 | %make_install
47 |
48 | %files
49 | %license LICENSE
50 | %doc README.md
51 | %dir %{_sysconfdir}/%{name}
52 | %config(noreplace) %{_sysconfdir}/%{name}/config
53 | %config %{_sysconfdir}/pam.d/%{name}lock
54 | %{_mandir}/man1/%{name}*.1*
55 | %{_mandir}/man5/%{name}*.5*
56 | %{_bindir}/%{name}
57 | %{_bindir}/%{name}bar
58 | %{_bindir}/%{name}bg
59 | %{_bindir}/%{name}grab
60 | %{_bindir}/%{name}lock
61 | %{_bindir}/%{name}msg
62 | %{_datadir}/%{name}/*
63 | %{_datadir}/zsh/site-functions/_%{name}*
64 | %{_datadir}/wayland-sessions/%{name}.desktop
65 |
66 | %changelog
67 | * Fri Aug 5 2016 mosquito - 0.9-1
68 | - Update to 0.9
69 |
70 | * Mon Aug 1 2016 mosquito - 0.9-0.1
71 | - Update to 0.9 rc3
72 |
73 | * Sun Jun 26 2016 mosquito - 0.8-2
74 | - Disable debuginfo pkg
75 | - Rewrite BuildRequires items
76 | - Remove CMAKE_INSTALL_PREFIX option
77 | - Use name macro instead of pkgname
78 |
79 | * Fri Jun 17 2016 mosquito - 0.8-1
80 | - Update to 0.8
81 |
82 | * Mon May 23 2016 nrechn - 0.7-1
83 | - Update to 0.7
84 |
85 | * Mon May 09 2016 nrechn - 0.6-1
86 | - Initial packaging
87 |
88 |
--------------------------------------------------------------------------------
/rpms/telegram/aseman-qt-tools.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %global project aseman-qt-tools
3 | %global repo %{project}
4 |
5 | # commit
6 | %global _commit 439f68d35da04fa7e1aa8b73b7cdf10d48b34c69
7 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
8 |
9 | Name: aseman-qt-tools
10 | Version: 1.0.0
11 | Release: 1.git%{_shortcommit}%{?dist}
12 | Summary: the shared tools and functions in the aseman's projects
13 | Summary(zh_CN): aseman 项目共享工具
14 |
15 | License: GPLv3
16 | Group: Development/Libraries
17 | Url: https://github.com/Aseman-Land/aseman-qt-tools
18 | Source0: %{url}/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
19 |
20 | BuildRequires: pkgconfig(Qt5DBus)
21 | BuildRequires: pkgconfig(Qt5Multimedia)
22 | BuildRequires: pkgconfig(Qt5Positioning)
23 | BuildRequires: pkgconfig(Qt5Sensors)
24 | BuildRequires: pkgconfig(Qt5Widgets)
25 | BuildRequires: qtkeychain-qt5-devel
26 |
27 | %description
28 | AsemanQtTools, is the shared tools and functions, we used
29 | in the aseman's projects.
30 |
31 | %prep
32 | %setup -q -n %repo-%{_commit}
33 |
34 | %build
35 | mkdir build && cd build
36 | # Disable the wallet and keychains support, DEFINES+=DISABLE_KEYCHAIN
37 | %{qmake_qt5} \
38 | QT+=dbus \
39 | QT+=multimedia \
40 | QT+=positioning \
41 | QT+=sensors \
42 | QT+=widgets \
43 | ..
44 | %make_build
45 |
46 | %install
47 | %make_install INSTALL_ROOT=%{buildroot} -C build
48 |
49 | %post -p /sbin/ldconfig
50 | %postun -p /sbin/ldconfig
51 |
52 | %files
53 | %defattr(-,root,root,-)
54 | %doc README.md
55 | %license LICENSE
56 | %{_qt5_prefix}/qml/AsemanTools/
57 |
58 | %changelog
59 | * Mon Jul 11 2016 mosquito - 1.0.0-1.git5afa8ec
60 | - Initial build
61 |
--------------------------------------------------------------------------------
/rpms/telegram/libqtelegram-ae.spec:
--------------------------------------------------------------------------------
1 | %global __strip_shared %(test $(rpm -E%?fedora) -eq 23 && echo "/usr/lib/rpm/brp-strip-shared %{__strip}" ||:)
2 | %global debug_package %{nil}
3 | %global project libqtelegram-aseman-edition
4 | %global repo %{project}
5 |
6 | # commit
7 | %global _commit e4c49667feaecedaff74af672419445bc022daa1
8 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
9 |
10 | Name: libqtelegram-ae
11 | Version: 10.0.0
12 | Release: 1.git%{_shortcommit}%{?dist}
13 | Summary: Telegram protocol access library
14 | Summary(zh_CN): Telegram 协议库
15 |
16 | License: GPLv3
17 | Group: Development/Libraries
18 | Url: https://github.com/Aseman-Land/libqtelegram-aseman-edition
19 | Source0: %{url}/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
20 |
21 | BuildRequires: pkgconfig(openssl)
22 | BuildRequires: pkgconfig(Qt5Core)
23 | BuildRequires: pkgconfig(Qt5Gui)
24 | BuildRequires: pkgconfig(Qt5Network)
25 | BuildRequires: pkgconfig(Qt5Multimedia)
26 |
27 | %description
28 | This is a fork of libqtelegram by Aseman team.
29 |
30 | This is a Qt asynchronous library to be used as Telegram client.
31 | Using signal-slot mechanism to communicate to telegram servers,
32 | exposes an easy to use API for applications to interact to.
33 |
34 | %package devel
35 | Summary: Development files for %{name}
36 | Requires: %{name}%{?_isa} = %{version}-%{release}
37 | Requires: qt5-qtbase-devel >= 5.4.0
38 |
39 | %description devel
40 | This is a fork of libqtelegram by Aseman team.
41 |
42 | This is a Qt asynchronous library to be used as Telegram client.
43 | Using signal-slot mechanism to communicate to telegram servers,
44 | exposes an easy to use API for applications to interact to.
45 |
46 | %prep
47 | %setup -q -n %repo-%{_commit}
48 |
49 | %build
50 | mkdir dist && pushd dist
51 | %{qmake_qt5} -r PREFIX=%{_prefix} \
52 | CONFIG+=typeobjects \
53 | OPENSSL_LIB_DIR=%{_libdir}/openssl \
54 | OPENSSL_INCLUDE_PATH=%{_includedir}/openssl \
55 | INSTALL_LIBS_PREFIX=%{_libdir} \
56 | INSTALL_HEADERS_PREFIX=%{_includedir} ..
57 | %make_build
58 |
59 | %install
60 | %make_install INSTALL_ROOT=%{buildroot} -C dist
61 |
62 | # strip shared files
63 | %{__strip_shared}
64 |
65 | %post -p /sbin/ldconfig
66 | %postun -p /sbin/ldconfig
67 |
68 | %files
69 | %defattr(-,root,root,-)
70 | %doc README.md
71 | %license LICENSE
72 | %{_libdir}/%{name}.so.*
73 |
74 | %files devel
75 | %defattr(-,root,root,-)
76 | %{_includedir}/%{name}
77 | %{_libdir}/%{name}.so
78 |
79 | %changelog
80 | * Mon Jul 11 2016 mosquito - 10.0.0-1.gite4c4966
81 | - Update to 10.0.0-1.gite4c4966
82 | * Mon Jan 18 2016 mosquito - 6.1-1.git4ad3aae
83 | - Update to 6.1-1.git4ad3aae
84 | * Wed Dec 9 2015 mosquito - 6.0-1.git569d31b
85 | - Update to 6.0-1.git569d31b
86 | - Strip shared files
87 | * Wed Sep 23 2015 mosquito - 0.5.0-2.gitd54aebe
88 | - Update to 0.5.0-2.gitd54aebe
89 | * Thu Jul 23 2015 mosquito - 0.5.0-1.gitef383c9
90 | - Initial build
91 |
--------------------------------------------------------------------------------
/rpms/tengine/modsec_lua_dump.patch:
--------------------------------------------------------------------------------
1 | --- modsecurity-2.9.0.orig/apache2/msc_lua.c 2015-03-06 01:35:06.458699865 +0800
2 | +++ modsecurity-2.9.0/apache2/msc_lua.c 2015-03-06 01:34:48.719647454 +0800
3 | @@ -111,7 +111,7 @@
4 | dump.pool = pool;
5 | dump.parts = apr_array_make(pool, 128, sizeof(msc_script_part *));
6 |
7 | - lua_dump(L, dump_writer, &dump);
8 | + lua_dump(L, dump_writer, &dump, 1);
9 |
10 | (*script) = apr_pcalloc(pool, sizeof(msc_script));
11 | (*script)->name = filename;
12 |
--------------------------------------------------------------------------------
/rpms/tengine/nginx-auto-cc-gcc.patch:
--------------------------------------------------------------------------------
1 | --- auto/cc/gcc.orig 2007-03-22 08:34:53.000000000 -0600
2 | +++ auto/cc/gcc 2007-03-22 08:58:47.000000000 -0600
3 | @@ -172,7 +172,9 @@
4 |
5 |
6 | # stop on warning
7 | -CFLAGS="$CFLAGS -Werror"
8 | +# This combined with Fedora's FORTIFY_SOURCE=2 option causes it nginx
9 | +# to not compile.
10 | +#CFLAGS="$CFLAGS -Werror"
11 |
12 | # debug
13 | CFLAGS="$CFLAGS -g"
14 |
--------------------------------------------------------------------------------
/rpms/tengine/poweredby.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/rpms/tengine/poweredby.png
--------------------------------------------------------------------------------
/rpms/tengine/tengine-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/rpms/tengine/tengine-logo.png
--------------------------------------------------------------------------------
/rpms/tengine/tengine-upgrade:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | [ ! -f /run/tengine.pid ] && exit 1
3 | echo "Start new tengine master..."
4 | /bin/systemctl kill --signal=SIGUSR2 tengine.service
5 | sleep 5
6 | [ ! -f /run/tengine.pid.oldbin ] && sleep 10
7 | if [ ! -f /run/tengine.pid.oldbin ]; then
8 | echo "Failed to start new tengine master."
9 | exit 1
10 | fi
11 | echo "Stop old tengine master gracefully..."
12 | oldpid=`/usr/bin/cat /run/tengine.pid.oldbin 2>/dev/null`
13 | /bin/kill -s QUIT $oldpid 2>/dev/null
14 | sleep 5
15 | [ -f /run/tengine.pid.oldbin ] && sleep 10
16 | if [ -f /run/tengine.pid.oldbin ]; then
17 | echo "Failed to stop old tengine master."
18 | exit 1
19 | fi
20 |
--------------------------------------------------------------------------------
/rpms/tengine/tengine.logrotate:
--------------------------------------------------------------------------------
1 | /var/log/tengine/*log {
2 | create 0644 nginx nginx
3 | daily
4 | rotate 10
5 | missingok
6 | notifempty
7 | compress
8 | sharedscripts
9 | postrotate
10 | /bin/kill -USR1 `cat /run/tengine.pid 2>/dev/null` 2>/dev/null || true
11 | endscript
12 | }
13 |
--------------------------------------------------------------------------------
/rpms/tengine/tengine.service:
--------------------------------------------------------------------------------
1 | [Unit]
2 | Description=The Tengine HTTP and reverse proxy server
3 | After=network.target remote-fs.target nss-lookup.target
4 |
5 | [Service]
6 | Type=forking
7 | PIDFile=/run/tengine.pid
8 | ExecStartPre=/usr/sbin/tengine -t
9 | ExecStart=/usr/sbin/tengine
10 | ExecReload=/bin/kill -s HUP $MAINPID
11 | KillSignal=SIGQUIT
12 | TimeoutStopSec=5
13 | KillMode=mixed
14 | PrivateTmp=true
15 |
16 | [Install]
17 | WantedBy=multi-user.target
18 |
--------------------------------------------------------------------------------
/rpms/tengine/tengine.sysconfig:
--------------------------------------------------------------------------------
1 | # Configuration file for the nginx service
2 |
3 | # set this to the location of the nginx configuration file
4 | NGINX_CONF_FILE=/etc/tengine/tengine.conf
5 |
--------------------------------------------------------------------------------
/rpms/typora/typora.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | Name: typora
3 | Version: 0.10.11
4 | Release: 1%{?dist}
5 | Summary: a minimal Markdown reading & writing app
6 | License: EULA
7 | Url: https://typora.io
8 | Source0: https://typora.io/linux/typora_%{version}_amd64.deb
9 | BuildRequires: desktop-file-utils
10 | Requires: hicolor-icon-theme
11 | %description
12 | A minimal Markdown reading & writing app.
13 |
14 | %package others
15 | Summary: Some useless files
16 | BuildArch: noarch
17 | Requires: typora = %{version}-%{release}
18 |
19 | %description others
20 | Some useless files.
21 |
22 | %prep
23 | ar x %{SOURCE0}
24 | tar -xf data.tar.xz
25 |
26 | %build
27 |
28 | %install
29 | cp -R usr %{buildroot}
30 |
31 | %check
32 | desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
33 |
34 | %files
35 | %license %{_docdir}/typora/copyright
36 | %{_bindir}/typora
37 | %{_datadir}/applications/%{name}.desktop
38 |
39 | %dir %{_datadir}/icons/hicolor
40 | %dir %{_datadir}/icons/hicolor/*
41 | %dir %{_datadir}/icons/hicolor/*/apps
42 | %{_datadir}/icons/hicolor/*/apps/*
43 |
44 | %dir %{_datadir}/typora
45 | %{_datadir}/typora/*
46 |
47 | %files others
48 | %{_datadir}/lintian
49 |
50 | %changelog
51 | * Sun Jul 18 2021 Liu Sen - 0.10.11-1
52 | - First release
53 |
54 |
--------------------------------------------------------------------------------
/rpms/unity/unity-editor.huge:
--------------------------------------------------------------------------------
1 | # http://forum.unity3d.com/threads/fedora-22.350432
2 | # http://forum.unity3d.com/threads/unity-on-linux-release-notes-and-known-issues.350256
3 | # chrome-sandbox requires this: https://code.google.com/p/chromium/wiki/LinuxSUIDSandbox
4 | %global debug_package %{nil}
5 | %global repo Unity
6 | %global _build f3
7 | %global _buildtag 2015082501
8 |
9 | Name: unity-editor
10 | Version: 5.1.0%{_build}
11 | Release: 1%{?dist}
12 | Summary: Editor for the Unity Game Engine
13 | License: Proprietary
14 | URL: http://unity3d.com
15 | Source0: http://download.unity3d.com/download_unity/%{name}-%{version}+%{_buildtag}_amd64.deb
16 |
17 | BuildRequires: dpkg
18 | BuildRequires: desktop-file-utils
19 | Requires: alsa-lib expat libpng12
20 | %filter_provides_in -P ^/opt/%{repo}/(MonoDevelop/.*|Editor/Data/.*)$
21 | %filter_requires_in -P ^/opt/%{repo}/(MonoDevelop/.*|Editor/Data/.*)$
22 | %filter_from_requires /mono/d; /local/d; /Geometry/d; /crypto/d; /element/d;
23 | %filter_from_requires /Texture/d; /Unwrap/d; /libcapi/d; /libcef/d;
24 | %filter_from_requires /libdlog/d; /libefl/d; /libumbra/d; /libdl.*2.4/d;
25 | %filter_from_requires /GCC_3.5/d; /libpq/d; /ARM/d; /libCg/d; /ecore/d;
26 | %filter_setup
27 |
28 | # If you need to export players to certain targets, there are other dependencies:
29 | # For WebGL: ffmpeg nodejs java6-runtime gzip
30 | # For Android and Tizen: java7-jdk Android-jdk
31 |
32 | %description
33 | Unity is a flexible and powerful development platform for creating
34 | multiplatform 3D and 2D games and interactive experiences. It's a
35 | complete ecosystem for anyone who aims to build a business on creating
36 | high-end content and connecting to their most loyal and enthusiastic
37 | players and customers.
38 |
39 | %prep
40 | %build
41 |
42 | %install
43 | dpkg-deb -X %{SOURCE0} %{buildroot}
44 |
45 | # unity and monodevelop start script
46 | install -d %{buildroot}%{_bindir}
47 | cat > %{buildroot}%{_bindir}/%{name} < %{buildroot}%{_bindir}/unity-monodevelop </dev/null ||:
59 | gtk-update-icon-cache -f -t -q %{_datadir}/icons/hicolor ||:
60 | /sbin/ldconfig
61 |
62 | %postun
63 | if [ $1 -eq 0 ]; then
64 | touch --no-create %{_datadir}/icons/hicolor &>/dev/null ||:
65 | gtk-update-icon-cache -f -t -q %{_datadir}/icons/hicolor ||:
66 | fi
67 | update-desktop-database -q ||:
68 | /sbin/ldconfig
69 |
70 | %files
71 | %defattr(-,root,root,-)
72 | %attr(0755,root,root) %{_bindir}/%{name}
73 | %attr(0755,root,root) %{_bindir}/unity-monodevelop
74 | %{_datadir}/applications/*
75 | %{_datadir}/icons/hicolor/*
76 | %{_defaultdocdir}/%{name}
77 | /opt/%{repo}/
78 | %attr(4755,root,root) /opt/%{repo}/Editor/chrome-sandbox
79 |
80 | %changelog
81 | * Tue Sep 1 2015 mosquito - 5.1.0f3-1
82 | - Initial build
83 |
--------------------------------------------------------------------------------
/rpms/vim/dead.package:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/FZUG/repo/b2474d8aa6f8f4404921f73a47bed77b54a6ec3f/rpms/vim/dead.package
--------------------------------------------------------------------------------
/rpms/vo-aacenc/vo-aacenc.spec:
--------------------------------------------------------------------------------
1 | Name: vo-aacenc
2 | Version: 0.1.2
3 | Release: 2%{?dist}
4 | Summary: VisualOn AAC encoder library
5 | License: ASL 2.0
6 | URL: http://opencore-amr.sourceforge.net/
7 | Source0: http://sourceforge.net/projects/opencore-amr/files/%{name}/%{name}-%{version}.tar.gz
8 |
9 | %description
10 | This library contains an encoder implementation of the Advanced Audio
11 | Coding (AAC) audio codec. The library is based on a codec implementation
12 | by VisualOn as part of the Stagefright framework from the Google
13 | Android project.
14 |
15 | This package is in the 'tainted' section because the AAC encoding
16 | standard is covered by patents.
17 |
18 | %package devel
19 | Summary: Development files for %{name}
20 | Requires: %{name}%{?_isa} = %{version}-%{release}
21 |
22 | %description devel
23 | This package contains libraries and header files for
24 | developing applications that use %{name}.
25 |
26 | %prep
27 | %setup -q
28 |
29 | %build
30 | %configure --disable-static
31 | %make_build
32 |
33 | %install
34 | make install DESTDIR=%{buildroot}
35 | find %{buildroot} -type f -name '*.la' -delete -print
36 |
37 | %post -p /sbin/ldconfig
38 | %postun -p /sbin/ldconfig
39 |
40 | %files
41 | %defattr(-,root,root,-)
42 | %doc README NOTICE
43 | %license COPYING
44 | %{_libdir}/lib%{name}.so.*
45 |
46 | %files devel
47 | %defattr(-,root,root,-)
48 | %{_includedir}/%{name}/*.h
49 | %{_libdir}/lib%{name}.so
50 | %{_libdir}/pkgconfig/%{name}.pc
51 |
52 | %changelog
53 | * Tue May 24 2016 mosquito - 0.1.2-2
54 | - Rebuilt for fedora 24
55 |
56 | * Thu May 17 2012 David Vasquez - 0.1.2-1
57 | - Initial build
58 |
--------------------------------------------------------------------------------
/rpms/winetricks/winetricks.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %global project winetricks
3 |
4 | %global repo %{project}
5 | %global _commit 4c2dc6ce393082a53b7045ba9b70af7320c3a170
6 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
7 |
8 | %global zh_repo winetricks-zh
9 | %global zh_commit 37e58cf75bdf0efcf8dfcb8f0e8ce1348a2ed604
10 | %global zh_scommit %(c=%{zh_commit}; echo ${c:0:7})
11 |
12 | Name: winetricks
13 | Version: 20160219
14 | Release: 1.git%{_shortcommit}%{?dist}
15 | Summary: an easy way to install program in Wine
16 | Summary(zh_CN): 快速为 Wine 安装应用程序
17 |
18 | Group: Applications/Internet
19 | License: GPL
20 | URL: http://winetricks.org
21 | Source0: https://github.com/Winetricks/winetricks/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
22 | Source1: https://github.com/hillwoodroc/winetricks-zh/archive/%{zh_commit}/%{zh_repo}-%{zh_scommit}.tar.gz
23 |
24 | BuildArch: noarch
25 | Requires: cabextract p7zip unzip wget
26 | Requires: zenity xdg-utils sudo gksu-polkit
27 | Requires: wine
28 |
29 | %description
30 | Winetricks is an easy way to work around problems in Wine.
31 |
32 | It has a menu of supported games/apps for which it can do
33 | all the workarounds automatically. It also lets you install
34 | missing DLLs or tweak various Wine settings individually.
35 |
36 | Help: http://wiki.winehq.org/winetricks
37 |
38 | %description -l zh_CN
39 | Winetricks 是一个 Shell 脚本, 用于在 Wine 中安装应用.
40 |
41 | 它包含一个游戏/应用菜单, 可自动完成所有安装, 开箱即用.
42 | 它可以安装程序所需 DLL 库或单独调整各种 Wine 设置.
43 |
44 | 帮助: http://wiki.winehq.org/winetricks_cn
45 |
46 | %prep
47 | %setup -q -a1 -n %repo-%{_commit}
48 |
49 | %build
50 | # Builtin Verbs: Runtimes, Fonts, Apps, Benchmarks, Games
51 | Total=$(cat src/winetricks|wc -l)
52 | LineNum=$(($(grep -n Apps src/winetricks|cut -d: -f1)+2))
53 | head -n $LineNum src/winetricks > top
54 | tail -n $(expr $Total - $LineNum) src/winetricks > bottom
55 |
56 | # delete qq
57 | sed -i '/qq apps/,+93d' bottom
58 |
59 | pushd %{zh_repo}-%{zh_commit}/verb
60 | for i in *.verb; do
61 | cat $i >> ../../top
62 | echo -e "\n#----------------------------------------------------------------\n" >> ../../top
63 | done
64 | popd
65 | cat top bottom > %{name}
66 |
67 | %install
68 | install -Dm 755 %{name} %{buildroot}%{_bindir}/%{name}
69 | install -Dm 644 src/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
70 |
71 | # Verbs
72 | install -d %{buildroot}%{_datadir}/%{name}/verbs
73 | cp %{zh_repo}-%{zh_commit}/verb/* %{buildroot}%{_datadir}/%{name}/verbs/
74 |
75 | %files
76 | %defattr(-,root,root,-)
77 | %doc README.md
78 | %license src/COPYING
79 | %{_bindir}/%{name}
80 | %{_datadir}/%{name}/verbs
81 | %{_mandir}/man1/%{name}.1.gz
82 |
83 | %changelog
84 | * Sat Feb 27 2016 mosquito - 20160219-1.git4c2dc6c
85 | - Update to 20160219-1.git4c2dc6c
86 | * Mon Jan 18 2016 mosquito - 20160109-1.git07ba4a0
87 | - Update to 20160109-1.git07ba4a0
88 | * Tue Dec 22 2015 mosquito - 20151116-1.gitca1a031
89 | - Update to 20151116-1.gitca1a031
90 | * Sat Jul 4 2015 mosquito - 20150702-1.git7ac3ae0
91 | - Initial build
92 |
--------------------------------------------------------------------------------
/rpms/wlc/wlc.obsolete:
--------------------------------------------------------------------------------
1 | %global _with_latest 0
2 | %global _commit 09146b68163978aa0a49c2d271c9f891e1538d42
3 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
4 |
5 | Name: wlc
6 | Version: 0.0.5
7 | Release: 1%{?dist}
8 | Summary: Wayland compositor library
9 | Group: User Interface/X
10 | License: MIT
11 | URL: https://github.com/Cloudef/wlc
12 | %if 0%{?_with_latest}
13 | Source0: %{url}/archive/%{_commit}/%{name}-%{_shortcommit}.tar.gz
14 | %else
15 | Source0: %{url}/archive/v%{version}.tar.gz
16 | %endif
17 |
18 | BuildRequires: cmake
19 | BuildRequires: pkgconfig(pixman-1)
20 | BuildRequires: pkgconfig(wayland-client)
21 | BuildRequires: pkgconfig(wayland-server)
22 | BuildRequires: pkgconfig(wayland-egl)
23 | BuildRequires: pkgconfig(xkbcommon)
24 | BuildRequires: pkgconfig(libudev)
25 | BuildRequires: pkgconfig(libinput)
26 | BuildRequires: pkgconfig(x11-xcb)
27 | BuildRequires: pkgconfig(xfixes)
28 | BuildRequires: pkgconfig(xcb-ewmh)
29 | BuildRequires: pkgconfig(xcb-composite)
30 | BuildRequires: pkgconfig(xcb-xkb)
31 | BuildRequires: pkgconfig(xcb-image)
32 | BuildRequires: pkgconfig(xcb-xfixes)
33 | BuildRequires: pkgconfig(gbm)
34 | BuildRequires: pkgconfig(libdrm)
35 | BuildRequires: pkgconfig(egl)
36 | BuildRequires: pkgconfig(glesv2)
37 | BuildRequires: pkgconfig(dbus-1)
38 | BuildRequires: pkgconfig(libsystemd)
39 | BuildRequires: pkgconfig(chck)
40 | BuildRequires: pkgconfig(wayland-protocols)
41 |
42 | %description
43 | Wlc is a library for creating Wayland compositors.
44 |
45 | %package devel
46 | Summary: Wayland compositor library development files
47 | Group: Development/Libraries
48 | Requires: %{name}%{?_isa} = %{version}-%{release}
49 |
50 | %description devel
51 | This package contains files useful for software development with wlc,
52 | a Wayland compositor library.
53 |
54 | %prep
55 | %if 0%{?_with_latest}
56 | %autosetup -n %{name}-%{_commit}
57 | %else
58 | %autosetup -n %{name}-%{version}
59 | %endif
60 |
61 | %build
62 | %cmake .
63 | %make_build
64 |
65 | %install
66 | %make_install
67 |
68 | %check
69 | ctest -V %{?_smp_mflags}
70 |
71 | %post -p /sbin/ldconfig
72 | %postun -p /sbin/ldconfig
73 |
74 | %files
75 | %license LICENSE
76 | %doc README.rst
77 | %{_libdir}/libwlc.so.*
78 |
79 | %files devel
80 | %doc CONTRIBUTING.rst
81 | %{_includedir}/wlc/*.h
82 | %{_libdir}/libwlc.so
83 | %{_libdir}/pkgconfig/wlc.pc
84 |
85 | %changelog
86 | * Fri Aug 5 2016 mosquito - 0.0.5-1
87 | - Update to 0.0.5
88 |
89 | * Mon Aug 1 2016 mosquito - 0.0.4-1
90 | - Update to 0.0.4
91 |
92 | * Mon May 23 2016 nrechn - 0.0.3-1
93 | - Update to 0.0.3
94 |
95 | * Mon May 09 2016 nrechn - 0.0.2-1
96 | - Initial packaging
97 |
--------------------------------------------------------------------------------
/rpms/xorg-x11-drv-nvidia/00-avoid-glamor.conf:
--------------------------------------------------------------------------------
1 | #This file is provided by xorg-x11-drv-nvidia
2 | #Do not edit
3 |
4 | Section "Module"
5 | Disable "glamoregl"
6 | EndSection
7 |
--------------------------------------------------------------------------------
/rpms/xorg-x11-drv-nvidia/99-nvidia.conf:
--------------------------------------------------------------------------------
1 | #This file is provided by xorg-x11-drv-nvidia
2 | #Do not edit
3 |
4 | Section "Files"
5 | ModulePath "@LIBDIR@/nvidia/xorg"
6 | ModulePath "@LIBDIR@/xorg/modules"
7 | EndSection
8 |
--------------------------------------------------------------------------------
/rpms/xorg-x11-drv-nvidia/alternate-install-present:
--------------------------------------------------------------------------------
1 | This file is provided by RPMFusion project
2 | Please look for documentation at http://rpmfusion.org/Howto/nVidia
3 |
4 | To uninstall the package, use the following command:
5 |
6 | $ sudo yum remove xorg-x11-drv-nvidia\* kmod-nvidia\*
7 |
8 |
--------------------------------------------------------------------------------
/rpms/xorg-x11-drv-nvidia/blacklist-nouveau.conf:
--------------------------------------------------------------------------------
1 | # RPM Fusion blacklist for nouveau driver - you need to run as root:
2 | # dracut -f /boot/initramfs-$(uname -r).img $(uname -r)
3 | # if nouveau is loaded despite this file.
4 | blacklist nouveau
5 |
--------------------------------------------------------------------------------
/rpms/xorg-x11-drv-nvidia/nvidia-settings.desktop:
--------------------------------------------------------------------------------
1 | [Desktop Entry]
2 | Type=Application
3 | Exec=nvidia-settings -l
4 | Icon=nvidia-settings
5 | Hidden=false
6 | NoDisplay=false
7 | Name[en_GB]=nvidia-settings
8 | Name=nvidia-settings
9 | Comment[en_GB]=Load user settings
10 | Comment=Load user settings
11 | X-GNOME-Autostart-Delay=30
12 | X-GNOME-Autostart-enabled=true
13 |
--------------------------------------------------------------------------------
/rpms/xorg-x11-drv-nvidia/nvidia-xorg.conf:
--------------------------------------------------------------------------------
1 | # RPM Fusion - nvidia-xorg.conf
2 | #
3 | Section "Device"
4 | Identifier "Videocard0"
5 | Driver "nvidia"
6 | Option "NoLogo" "true"
7 | EndSection
8 |
9 | # If you card support Optimus, please use following configuration.
10 | #
11 | #Section "Module"
12 | # Load "modesetting"
13 | #EndSection
14 | #
15 | #Section "Device"
16 | # Identifier "nvidia"
17 | # Driver "nvidia"
18 | # BusID "PCI:1:0:0" # GPU BusID, lspci | grep "3D" (Change 01:00.0 to 1:0:0)
19 | # Option "AllowEmptyInitialConfiguration"
20 | # Option "NoLogo" "true"
21 | #EndSection
22 | #
23 | # Then, please use xrandr command to set output source for your Display Manager.
24 | # https://wiki.archlinux.org/index.php/NVIDIA_Optimus
25 | #
26 | # For example with GDM:
27 | # $ sudo vim /usr/share/gdm/greeter/autostart/display_setup.desktop
28 | # [Desktop Entry]
29 | # Type=Application
30 | # Name=Display setup
31 | # Exec=sh -c "xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto"
32 | # NoDisplay=true
33 | # X-GNOME-AutoRestart=true
34 |
--------------------------------------------------------------------------------
/rpms/xorg-x11-drv-nvidia/nvidia.conf:
--------------------------------------------------------------------------------
1 | #This file is provided by xorg-x11-drv-nvidia
2 | #Do not edit
3 |
4 | Section "OutputClass"
5 | Identifier "nvidia"
6 | MatchDriver "nvidia-drm"
7 | Driver "nvidia"
8 | EndSection
9 |
--------------------------------------------------------------------------------
/rpms/xware-desktop/xware-desktop_makefile.patch:
--------------------------------------------------------------------------------
1 | --- xware-desktop-0.13git20141029.orig/src/frontend/Extensions/Makefile 2014-10-29 18:46:29.853914060 +0800
2 | +++ xware-desktop-0.13git20141029/src/frontend/Extensions/Makefile 2014-10-29 18:47:42.567998034 +0800
3 | @@ -1,7 +1,9 @@
4 | +QMAKE = qmake
5 | +
6 | all: DBusTypes.so
7 |
8 | libDBusTypes.so: src/DBusTypes.cpp src/DBusTypes.hpp src/Extensions.pro
9 | - cd src && qmake && make
10 | + cd src && $(QMAKE) && make
11 | cp src/build/libDBusTypes.so* ./
12 |
13 | DBusTypes.so: libDBusTypes.so
14 |
--------------------------------------------------------------------------------
/rpms/xx-net/xx-net.spec:
--------------------------------------------------------------------------------
1 | %global debug_package %{nil}
2 | %global project XX-Net
3 | %global repo %{project}
4 |
5 | # commit
6 | %global _commit 262bc7343f2ee8533df66316e8c5d1c1b00ec796
7 | %global _shortcommit %(c=%{_commit}; echo ${c:0:7})
8 |
9 | %global systemd_user_post() \
10 | if [ $1 -eq 1 ] ; then\
11 | # Initial installation\
12 | systemctl preset --user --global %* >/dev/null 2>&1 || :\
13 | fi\
14 | %{nil}
15 |
16 | Name: xx-net
17 | Version: 2.9.1
18 | Release: 1.git%{_shortcommit}%{?dist}
19 | Summary: A stable, easy to use and fast proxy based on GAE
20 | Summary(zh_CN): 基于 GAE 的代理工具
21 |
22 | Group: Applications/Internet
23 | License: BSD
24 | URL: https://github.com/XX-net/XX-Net
25 | Source0: https://github.com/XX-net/XX-Net/archive/%{_commit}/%{repo}-%{_shortcommit}.tar.gz
26 | Patch0: use-home-config.path
27 |
28 | BuildArch: noarch
29 | BuildRequires: systemd
30 | Requires: nss-tools
31 | Requires: libffi-devel
32 | Requires: pyOpenSSL
33 | Requires: pygtk2
34 | Requires: python-appindicator
35 | %{?systemd_requires}
36 |
37 | %description
38 | A stable, easy to use and fast proxy based on GAE.
39 |
40 | More https://github.com/XX-net/XX-Net/wiki
41 |
42 | %description -l zh_CN
43 | 一款稳定易用的基于 GAE 的代理工具. 通过 WebUI 配置管理十分方便.
44 |
45 | 更多信息 https://github.com/XX-net/XX-Net/wiki
46 |
47 | %prep
48 | %setup -q -n %repo-%{_commit}
49 | %patch0 -p1
50 | find -type f -regextype posix-extended \( \
51 | -name '*.py' -exec sed -i '/^#!\/usr\/bin/d' '{}' \; -or \
52 | -name '.gitignore' -exec rm -f '{}' \; -or \
53 | -name '*.sh' -exec rm -f '{}' \; -or \
54 | -regex '.*.(py|js|css)$' -exec chmod 644 '{}' \; \)
55 |
56 | %build
57 |
58 | %install
59 | install -d %{buildroot}%{_datadir}/%{name}
60 | mv python27/1.0/lib/noarch lib
61 | cp -r README.md launcher gae_proxy php_proxy x_tunnel lib \
62 | %{buildroot}%{_datadir}/%{name}
63 |
64 | # bin script
65 | install -d %{buildroot}%{_bindir}
66 | cat > %{buildroot}%{_bindir}/%{name} < %{buildroot}%{_userunitdir}/%{name}.service < - 2.9.1-1.git262bc73
106 | - Release 2.9.1
107 | - Use user home to save config file
108 | * Mon Jan 25 2016 mosquito - 2.8.10-1.git84585b1
109 | - Initial build
110 |
--------------------------------------------------------------------------------
/rpms/youdao-dict/youdao-dict-1.1.0-dbus-register-object.patch:
--------------------------------------------------------------------------------
1 | --- a/youdao-dict/app/plugins/youdao/dbus_proxy.py 2016-05-24 11:12:53.000000000 +0800
2 | +++ b/youdao-dict/app/plugins/youdao/dbus_proxy.py 2016-09-22 14:43:11.571453798 +0800
3 | @@ -52,6 +52,7 @@
4 | def __init__(self):
5 | QtCore.QObject.__init__(self)
6 | self.session_bus = QDBusConnection.sessionBus()
7 | + self.session_bus.registerObject('/', self)
8 | self.session_bus.connect(self.DBUS_NAME, self.DBUS_PATH, self.DBUS_IFACE,
9 | 'hide', self.hideSlot)
10 | self.session_bus.connect(self.DBUS_NAME, self.DBUS_PATH, self.DBUS_IFACE,
11 | @@ -204,6 +205,7 @@
12 | def __init__(self):
13 | QtCore.QObject.__init__(self)
14 | self.session_bus = QDBusConnection.sessionBus()
15 | + self.session_bus.registerObject('/indicator', self)
16 | self.session_bus.connect(self.DBUS_NAME, self.DBUS_PATH, self.DBUS_IFACE,
17 | 'MenuItemClicked', self.MenuItemClickedSlot)
18 | self.session_bus.connect(self.DBUS_NAME, self.DBUS_PATH, self.DBUS_IFACE,
19 | --- a/youdao-dict/dae/ewmh.py 2016-05-24 11:12:53.000000000 +0800
20 | +++ b/youdao-dict/dae/ewmh.py 2016-09-22 14:43:20.551538216 +0800
21 | @@ -116,7 +116,7 @@
22 | self.display.get_atom(property_type),
23 | Xatom.STRING,
24 | 8,
25 | - property_content,
26 | + property_content.encode('ascii'),
27 | )
28 | self.display.sync()
29 |
30 |
--------------------------------------------------------------------------------