Skip to content

Instantly share code, notes, and snippets.

View wangxiyuan's full-sized avatar
🇨🇳
take care, everyone

wangxiyuan wangxiyuan

🇨🇳
take care, everyone
View GitHub Profile
import requests
class FetchVersion(object):
def __init__(self, project_list):
self.project_list = project_list
def _fetch_version(self, project, branch):
spec_content = requests.get('https://gitee.com/src-openeuler/%s/raw/%s/%s.spec' % (project, branch, project)).content.decode().split('\n')
for line in spec_content:
if line.startswith('Version'):
@wangxiyuan
wangxiyuan / maven_setting.xml
Created August 10, 2020 08:26
Maven mirror
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
@wangxiyuan
wangxiyuan / x265.spec
Last active June 5, 2020 01:01
x265 RPM SPEC for openEuler
Summary: H.265/HEVC encoder
Name: x265
Version: 3.4
Release: 1
URL: http://x265.org/
License: GPLv2
Source0: https://bitbucket.org/multicoreware/%{name}/downloads/%{name}_%{version}.tar.gz
BuildRequires: rpm-build cmake make gcc gcc-c++ gdb